Edgewall Software

Changes between Version 49 and Version 50 of WikiProcessors


Ignore:
Timestamp:
May 6, 2011, 12:13:37 AM (13 years ago)
Author:
anatoly techtonik <techtonik@…>
Comment:

add mime type processors into table

Legend:

Unmodified
Added
Removed
Modified
  • WikiProcessors

    v49 v50  
    174174||||= '''Code Highlighting Support''' =||
    175175|| '''`#!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. ||
    176 
    177 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:
    178 {{{
     176|||| ||
     177||||= '''MIME Type Processors''' =||
     178|||| Using the MIME type as processor, it is possible to syntax-highlight the same languages that are supported when browsing source code. ||
     179{{{#!td
     180For example:
     181 {{{
    179182{{{
    180183#!text/html
    181184<h1>text</h1>
    182185}}}
    183 }}}
    184 
     186 }}}
     187}}}
     188{{{#!td
    185189The result will be syntax highlighted HTML code:
    186 {{{
     190 {{{
    187191#!text/html
    188192<h1>text</h1>
    189 }}}
     193 }}}
    190194
    191195The same is valid for all other [TracSyntaxColoring#SyntaxColoringSupport mime types supported].
    192 
     196}}}
    193197
    194198For more processor macros developed and/or contributed by users, visit: