Changes between Version 3 and Version 4 of WikiProcessors
- Timestamp:
- May 19, 2008, 10:20:33 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiProcessors
v3 v4 1 1 = Wiki Processors = 2 2 3 Processors are [TracWikiMacros wiki macros]designed to provide alternative markup formats for the [TracWiki Wiki engine]. Processors can be thought of as ''macro functions to process user-edited text''.3 Processors are WikiMacros designed to provide alternative markup formats for the [TracWiki Wiki engine]. Processors can be thought of as ''macro functions to process user-edited text''. 4 4 5 5 The Wiki engine uses processors to allow using [wiki:WikiRestructuredText Restructured Text], [wiki:WikiHtml raw HTML] and [http://www.textism.com/tools/textile/ textile] in any Wiki text throughout Trac. … … 25 25 <h1 style="color: orange">This is raw HTML</h1> 26 26 }}} 27 28 Note that since 0.11, such blocks of HTML 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 div or span processors for achieving similar effect (see WikiHtml). 27 29 28 30 ---- … … 82 84 * '''html''' -- Insert custom HTML in a wiki page. See WikiHtml. 83 85 * '''div''' -- Wrap an arbitrary Wiki content in a <div> element (''since 0.11''). See WikiHtml. 86 * '''span''' -- Wrap an arbitrary Wiki content in a <span> element (''since 0.11''). See also WikiHtml. 84 87 * '''rst''' -- Trac support for Restructured Text. See WikiRestructuredText. 85 88 * '''textile''' -- Supported if [http://cheeseshop.python.org/pypi/textile Textile] is installed. See [http://www.textism.com/tools/textile/ a Textile reference]. … … 94 97 * '''ruby''' -- Ruby 95 98 * '''php''' -- PHP 96 * '''asp''' --- ASP 99 * '''asp''' -- ASP 100 * '''java''' -- Java 101 * '''js''' -- Javascript 97 102 * '''sql''' -- SQL 98 103 * '''xml''' -- XML 99 104 * '''sh''' -- Bourne/Bash shell 105 100 106 '''Note:''' ''Trac relies on external software packages for syntax coloring. See TracSyntaxColoring for more info.'' 101 107 … … 108 114 }}} 109 115 110 The result will be syntax highlighted HTML code. The same is valid for all other mime types supported. 116 The result will be syntax highlighted HTML code: 117 {{{ 118 #!text/html 119 <h1>text</h1> 120 }}} 121 122 The same is valid for all other mime types supported. 111 123 112 124 113 125 For more processor macros developed and/or contributed by users, visit: 114 * [http://trac.edgewall.org/wiki/ProcessorBazaar ProcessorBazaar] 115 * [http://trac.edgewall.org/wiki/MacroBazaar MacroBazaar] 126 * [trac:ProcessorBazaar] 127 * [trac:MacroBazaar] 128 * [th:WikiStart Trac Hacks] community site 116 129 117 130 118 131 == Advanced Topics: Developing Processor Macros == 119 Developing processors is no different from [TracWikiMacros wiki macros]. In fact they work the same way, only the usage syntax differs.132 Developing processors is no different from Wiki macros. In fact they work the same way, only the usage syntax differs. See WikiMacros for more information. 120 133 121 134 122 135 ---- 123 See also: TracWikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide136 See also: WikiMacros, WikiHtml, WikiRestructuredText, TracSyntaxColoring, WikiFormatting, TracGuide