Changes between Version 1 and Version 2 of WikiProcessors
- Timestamp:
- Jan 30, 2006, 11:09:16 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiProcessors
v1 v2 5 5 6 6 == Using Processors == 7 To use a processor on a block of text, use a wiki blockquote, selecting a processor by name using ' hashbang notation' (#!), familiar to most UNIX users from scripts.7 To use a processor on a block of text, use a wiki blockquote, selecting a processor by name using ''shebang notation'' (#!), familiar to most UNIX users from scripts. 8 8 9 9 '''Example 1''' (''inserting raw HTML in a wiki text''): … … 57 57 int main(int argc, char *argv[]) 58 58 { 59 printf("Hello World 60 "); 59 printf("Hello World\n"); 61 60 return 0; 62 61 } … … 69 68 int main(int argc, char *argv[]) 70 69 { 71 printf("Hello World 72 "); 70 printf("Hello World\n"); 73 71 return 0; 74 72 } … … 76 74 77 75 ---- 78 79 80 76 81 77 == Available Processors == … … 85 81 * '''textile''' -- Supported if [http://dealmeida.net/projects/textile/ Textile] is installed. 86 82 87 === Source CodeSupport ===88 Trac includes processors to provide inline [wiki:TracSyntaxColoring syntax highlighting] for the selanguages:83 === Code Highlighting Support === 84 Trac includes processors to provide inline [wiki:TracSyntaxColoring syntax highlighting] for the following languages: 89 85 * '''c''' -- C 90 86 * '''cpp''' -- C++ … … 98 94 '''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.'' 99 95 100 By using the mime-type as processor, it is posible to syntax-highlight the same languages that are supported when browsing source code. 101 102 For example, you can write: 103 96 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: 104 97 {{{ 105 98 {{{ … … 109 102 }}} 110 103 111 The result will be syntax highlighted htmlcode. The same is valid for all other mime types supported.104 The result will be syntax highlighted HTML code. The same is valid for all other mime types supported. 112 105 113 106 107 For more processor macros developed and/or contributed by users, visit: 108 * [http://projects.edgewall.com/trac/wiki/ProcessorBazaar ProcessorBazaar] 109 * [http://projects.edgewall.com/trac/wiki/MacroBazaar MacroBazaar] 114 110 115 For more processor macros developed and/or contributed by users, visit the macro bazaar:116 http://projects.edgewall.com/trac/wiki/MacroBazaar117 111 118 ----119 112 == Advanced Topics: Developing Processor Macros == 120 113 Developing processors is no different than WikiMacros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information. … … 130 123 131 124 ---- 132 See also 125 See also: WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide