119 | | <input type="hidden" name="col" value="id"> |
120 | | <input type="hidden" name="col" value="summary"> |
121 | | <input type="hidden" name="col" value="status"> |
122 | | <input type="hidden" name="col" value="milestone"> |
123 | | <input type="hidden" name="col" value="version"> |
124 | | <input type="hidden" name="col" value="owner"> |
125 | | <input type="hidden" name="col" value="priority"> |
126 | | <input type="hidden" name="col" value="component"> |
| 120 | <input type="hidden" name="col" value="id"/> |
| 121 | <input type="hidden" name="col" value="summary"/> |
| 122 | <input type="hidden" name="col" value="status"/> |
| 123 | <input type="hidden" name="col" value="milestone"/> |
| 124 | <input type="hidden" name="col" value="version"/> |
| 125 | <input type="hidden" name="col" value="owner"/> |
| 126 | <input type="hidden" name="col" value="priority"/> |
| 127 | <input type="hidden" name="col" value="component"/> |
139 | | <input type="hidden" name="col" value="id"> |
140 | | <input type="hidden" name="col" value="summary"> |
141 | | <input type="hidden" name="col" value="status"> |
142 | | <input type="hidden" name="col" value="milestone"> |
143 | | <input type="hidden" name="col" value="version"> |
144 | | <input type="hidden" name="col" value="owner"> |
145 | | <input type="hidden" name="col" value="priority"> |
146 | | <input type="hidden" name="col" value="component"> |
| 140 | <input type="hidden" name="col" value="id"/> |
| 141 | <input type="hidden" name="col" value="summary"/> |
| 142 | <input type="hidden" name="col" value="status"/> |
| 143 | <input type="hidden" name="col" value="milestone"/> |
| 144 | <input type="hidden" name="col" value="version"/> |
| 145 | <input type="hidden" name="col" value="owner"/> |
| 146 | <input type="hidden" name="col" value="priority"/> |
| 147 | <input type="hidden" name="col" value="component"/> |
155 | | `#!default` :: Present the text verbatim in a preformatted text block. |
156 | | This is the same as specifying ''no'' processor name |
157 | | (and no `#!`) |
158 | | `#!comment` :: Do not process the text in this section (i.e. contents exist |
159 | | only in the plain text - not in the rendered page). |
160 | | |
161 | | === HTML related === |
162 | | |
163 | | `#!html` :: Insert custom HTML in a wiki page. |
164 | | `#!htmlcomment` :: Insert an HTML comment in a wiki page (''since 0.12''). |
165 | | |
166 | | Note that `#!html` blocks have to be ''self-contained'', |
167 | | i.e. you can't start an HTML element in one block and close it later in a second block. Use the following processors for achieving a similar effect. |
168 | | |
169 | | `#!div` :: Wrap an arbitrary Wiki content inside a <div> element |
170 | | (''since 0.11''). |
171 | | `#!span` :: Wrap an arbitrary Wiki content inside a <span> element |
172 | | (''since 0.11''). |
173 | | |
174 | | `#!td` :: Wrap an arbitrary Wiki content inside a <td> element (''since 0.12'') |
175 | | `#!th` :: Wrap an arbitrary Wiki content inside a <th> element (''since 0.12'') |
176 | | `#!tr` :: Can optionally be used for wrapping `#!td` and `#!th` blocks, |
177 | | either for specifying row attributes of better visual grouping |
178 | | (''since 0.12'') |
179 | | |
180 | | See WikiHtml for example usage and more details about these processors. |
181 | | |
182 | | === Other Markups === |
183 | | |
184 | | `#!rst` :: Trac support for Restructured Text. See WikiRestructuredText. |
185 | | `#!textile` :: Supported if [http://cheeseshop.python.org/pypi/textile Textile] |
186 | | is installed. |
187 | | See [http://www.textism.com/tools/textile/ a Textile reference]. |
188 | | |
189 | | |
190 | | === Code Highlighting Support === |
191 | | |
192 | | Trac includes processors to provide inline syntax highlighting: |
193 | | `#!c` (C), `#!cpp` (C++), `#!python` (Python), `#!perl` (Perl), |
194 | | `#!ruby` (Ruby), `#!php` (PHP), `#!asp` (ASP), `#!java` (Java), |
195 | | `#!js` (Javascript), `#!sql (SQL)`, `#!xml` (XML or HTML), |
196 | | `#!sh` (!Bourne/Bash shell), etc. |
197 | | |
198 | | Trac relies on external software packages for syntax coloring, |
199 | | like [http://pygments.org Pygments]. |
200 | | |
201 | | See TracSyntaxColoring for information about which languages |
202 | | are supported and how to enable support for more languages. |
203 | | |
204 | | Note also that by using the MIME type as processor, it is possible to syntax-highlight the same languages that are supported when browsing source code. For example, you can write: |
205 | | {{{ |
| 156 | || '''`#!default`''' || Present the text verbatim in a preformatted text block. This is the same as specifying ''no'' processor name (and no `#!`) || |
| 157 | || '''`#!comment`''' || Do not process the text in this section (i.e. contents exist only in the plain text - not in the rendered page). || |
| 158 | || '''`#!rtl`''' || Introduce a Right-To-Left block with appropriate CSS direction and styling ''(since 0.12.2)'' || |
| 159 | |||| || |
| 160 | ||||= '''[=#HTMLrelated HTML related]''' =|| |
| 161 | || '''`#!html`''' || Insert custom HTML in a wiki page. || |
| 162 | || '''`#!htmlcomment`''' || Insert an HTML comment in a wiki page (''since 0.12''). || |
| 163 | || || Note that `#!html` blocks have to be ''self-contained'', i.e. you can't start an HTML element in one block and close it later in a second block. Use the following processors for achieving a similar effect. || |
| 164 | || '''`#!div`''' || Wrap an arbitrary Wiki content inside a <div> element (''since 0.11''). || |
| 165 | || '''`#!span`''' || Wrap an arbitrary Wiki content inside a <span> element (''since 0.11''). || |
| 166 | || '''`#!td`''' || Wrap an arbitrary Wiki content inside a <td> element (''since 0.12'') || |
| 167 | || '''`#!th`''' || Wrap an arbitrary Wiki content inside a <th> element (''since 0.12'') || |
| 168 | || '''`#!tr`''' || Can optionally be used for wrapping `#!td` and `#!th` blocks, either for specifying row attributes or better visual grouping (''since 0.12'') || |
| 169 | || '''`#!table`''' || Can optionally be used for wrapping `#!tr`, `#!td` and `#!th` blocks, for specifying table attributes. One current limitation however is that tables cannot be nested. (''since 0.12'') || |
| 170 | || || See WikiHtml for example usage and more details about these processors. || |
| 171 | |||| || |
| 172 | ||||= '''Other Markups''' =|| |
| 173 | || '''`#!rst`''' || Trac support for Restructured Text. See WikiRestructuredText. || |
| 174 | || '''`#!textile`''' || Supported if [http://cheeseshop.python.org/pypi/textile Textile] is installed. See [http://www.textism.com/tools/textile/ a Textile reference]. || |
| 175 | |||| || |
| 176 | ||||= '''[=#CodeHighlightingSupport Code Highlighting Support]''' =|| |
| 177 | || '''`#!c`''' [[BR]] '''`#!cpp`''' (C++) [[BR]] '''`#!python`''' [[BR]] '''`#!perl`''' [[BR]] '''`#!ruby`''' [[BR]] '''`#!php`''' [[BR]] '''`#!asp`''' [[BR]] '''`#!java`''' [[BR]] '''`#!js`''' (Javascript) [[BR]] '''`#!sql`''' [[BR]] '''`#!xml`''' (XML or HTML) [[BR]] '''`#!sh`''' (!Bourne/Bash shell) [[BR]] '''etc.''' [[BR]] || Trac includes processors to provide inline syntax highlighting for source code in various languages. [[BR]] [[BR]] Trac relies on external software packages for syntax coloring, like [http://pygments.org Pygments]. [[BR]] [[BR]] See TracSyntaxColoring for information about which languages are supported and how to enable support for more languages. || |
| 178 | |||| || |
| 179 | |
| 180 | Using the MIME type as processor, it is possible to syntax-highlight the same languages that are supported when browsing source code. |
| 181 | |
| 182 | ||||= '''MIME Type Processors''' =|| |
| 183 | {{{#!tr |
| 184 | {{{#!td |
| 185 | Some examples: |
| 186 | {{{ |