summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-07-26 20:51:23 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-07-26 20:51:23 +0200
commit8cd177c06d84c228e8bbaf04d94cfbd1f468684a (patch)
tree65ef841a48ed83ef5efa35dd4ba1a114e1a14741 /data
parentf9d4952b85ad1aa955550547c39cdae4df55d086 (diff)
downloadrpg-8cd177c06d84c228e8bbaf04d94cfbd1f468684a.tar.gz
rpg-8cd177c06d84c228e8bbaf04d94cfbd1f468684a.tar.bz2
Added downloadable code blocks to wiki:syntax
Ignore-this: 3ec9f7b84454b59cbf5c118e1e09d86 darcs-hash:20090726185123-7ad00-ba0ae7cd50c0333bd1eb98633419047d9c2fd53f.gz
Diffstat (limited to 'data')
-rw-r--r--data/pages/wiki/syntax.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/data/pages/wiki/syntax.txt b/data/pages/wiki/syntax.txt
index 7917615eb..fd4ed314e 100644
--- a/data/pages/wiki/syntax.txt
+++ b/data/pages/wiki/syntax.txt
@@ -325,7 +325,7 @@ See the source of this page to see how to use these blocks.
===== Syntax Highlighting =====
-[[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax is the same like in the code block in the previous section, but this time the name of the used language is inserted inside the tag. Eg. ''<nowiki><code java></nowiki>''.
+[[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax is the same like in the code and file blocks in the previous section, but this time the name of the used language is inserted inside the tag. Eg. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.
<code java>
/**
@@ -341,6 +341,22 @@ class HelloWorldApp {
The following language strings are currently recognized: //abap, actionscript-french, actionscript, actionscript3, ada, apache, applescript, asm, asp, autoit, avisynth, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cmake, cobol, cpp, cpp-qt, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang, fo, fortran, freebasic, genero, glsl, gml, gnuplot, groovy, gettext, haskell, hq9plus, html, idl, ini, inno, intercal, io, java5, java, javascript, kixtart, klonec, klonecpp, latex, lisp, locobasic, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis, oberon2, objc, ocaml-brief, ocaml, oobas, oracle8, oracle11, pascal, perl, per, php-brief, php, pic16, pixelbender, plsql, povray, powershell, progress, prolog, properties, providex, python, qbasic, rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vbnet, vb, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, whois, xml, xorg_conf, xpp, z80//
+===== Downloadable Code Blocks =====
+
+When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can to this by specifying a file name after language code like this:
+
+<code>
+<file php myexample.php>
+<?php echo "hello world!"; ?>
+</file>
+</code>
+
+<file php myexample.php>
+<?php echo "hello world!"; ?>
+</file>
+
+If you don't want any highlighting but want a downloadable file specify ''-'' as the language code:''%%<code - myfile.foo>%%''.
+
===== RSS/ATOM Feed Aggregation =====
[[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters: