Changes between Version 6 and Version 7 of TracCodeProcessorMacro
- Timestamp:
- Jun 21, 2015, 4:17:50 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracCodeProcessorMacro
v6 v7 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Code Wiki Processor = 2 3 = Code Wiki Processor 4 3 5 4 6 '''This is an external plugin. Please don't report any tickets here.''' See below for more information. 5 7 6 == Description == 8 == Description 9 7 10 This plugin provides a [wiki:WikiProcessors wiki processor] for code listing that uses file extensions for language detection rather than mimetypes. Normally you would - for [wiki:WikiProcessors#CodeHighlightingSupport more "exotic"] programming languages - have to specify the mimetype for a codelisting, like this: 8 11 … … 22 25 }}} 23 26 24 Since mimetypes are often hard to remember (is it `text/...` or `applicat on/...` or ...) and you have to dig to find the actual mimetype of a certain programing language this wiki processor addresses this problem. You only have to specify the ''file extension'' of the progamming language. To specify to code block above using this plugin simply write:27 Since mimetypes are often hard to remember (is it `text/...` or `application/...`?) and you have to dig to find the actual mimetype of a certain programming language this wiki processor addresses this problem. You only have to specify the ''file extension'' of the programming language. To specify to code block above using this plugin simply write: 25 28 26 29 {{{ … … 43 46 [[Image(screenshot.png)]] 44 47 45 '''Note:''' Some "program ing languages" (such as Apache config files) may be supported by the installed syntax highlighting tool (such as Pygments) but not be supported by Trac. This plugin adds support for those less frequently used languages.48 '''Note:''' Some "programming languages" (such as Apache config files) may be supported by the installed syntax highlighting tool (such as Pygments) but not be supported by Trac. This plugin adds support for those less frequently used languages. 46 49 47 As a nicebonus the programming language is displayed in the lower right corner of the listing. This way a reader can easily identify the language the listing is written in.50 As a bonus the programming language is displayed in the lower right corner of the listing. This way a reader can easily identify the language the listing is written in. 48 51 49 == Source and Tickets == 52 == Source and Tickets 53 50 54 You'll find all information about this ticket [https://svn.mayastudios.de/mtpp/wiki/Plugins/CodeProcessor here]. Please file only tickets there. 51 55 52 == Author/Contributors == 56 == Author/Contributors 57 53 58 '''Author:''' [wiki:manski Sebastian Krysmanski] [[BR]] 54 '''Maintainer:''' [ wiki:manski Sebastian Krysmanski] [[BR]]59 '''Maintainer:''' [[Maintainer]] [[BR]] 55 60 '''Contributors:'''