Changes between Version 1 and Version 2 of TracSyntaxColoring


Ignore:
Timestamp:
30.10.2014 16:54:20 (10 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v1 v2  
    3030[[KnownMimeTypes]] 
    3131 
     32Note that the rich content may be directly //rendered// instead of syntax highlighted. This usually depends on which auxiliary packages are installed and on which components are activated in your setup. For example a `text/x-rst` document will be rendered via `docutils` if it is installed and the `trac.mimeview.rst.ReStructuredTextRenderer` is not disabled, and will be syntax highlighted otherwise. 
     33 
     34In a similar way, a document with the mimetype `text/x-trac-wiki` is rendered using the Trac wiki formatter, unless the `trac.mimeview.api.WikiTextRenderer` component is disabled. 
     35 
     36HTML documents are directly rendered only if the `render_unsafe_html` settings are enabled in the TracIni (those settings are present in multiple sections, as there are different security concerns depending where the document comes from). If you want to ensure that an HTML document gets syntax highlighted and not rendered, use the `text/xml` mimetype. 
     37 
     38If mimetype such as 'svn:mime-type' is set to 'text/plain', there is no coloring even if file is known type like 'java'. 
    3239 
    3340=== List of Languages Supported, by Highlighter #language-supported 
     
    4350|| C#              ||                 ||  ✓ ^[#a1 (1)]^  ||  ✓  || 
    4451|| C++             ||  ✓              ||  ✓              ||  ✓  || 
     52|| CMake           ||  ?              ||  ?              ||  ✓  || 
    4553|| Java            ||  ✓ ^[#a2 (2)]^  ||  ✓              ||  ✓  || 
    4654|| Awk             ||                 ||  ✓              ||     || 
     
    98106 
    99107== Extra Software == 
    100  * GNU Enscript -- http://directory.fsf.org/GNU/enscript.html 
    101  * GNU Enscript for Windows -- http://gnuwin32.sourceforge.net/packages/enscript.htm 
    102  * !SilverCity -- http://silvercity.sf.net/ 
    103  * Pygments -- http://pygments.org/ 
     108 * GNU Enscript http://directory.fsf.org/GNU/enscript.html 
     109 * GNU Enscript for Windows http://gnuwin32.sourceforge.net/packages/enscript.htm 
     110 * !SilverCity http://silvercity.sf.net/ 
     111 * **Pygments — http://pygments.org/** 
    104112 
    105113----