User Tools

Site Tools


wiki:syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:syntax [2017/04/29 00:54]
Rek Links adapted because of a move operation
wiki:syntax [2019/01/06 09:18] (current)
Line 45: Line 45:
 ==== Internal ==== ==== Internal ====
  
-Internal links are created by using square brackets. You can either just give a [[wiki:pagename]] or use an additional [[wiki:pagename|link text]].+Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]].
  
   Internal links are created by using square brackets. You can either just give   Internal links are created by using square brackets. You can either just give
Line 64: Line 64:
 Notes: Notes:
  
-  * Links to [[syntax|existing pages]] are shown in a different style from [[wiki:nonexisting]] ones.+  * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones.
   * DokuWiki does not use [[wp>​CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>​config]] file. Hint: If DokuWiki is a link, then it's enabled.   * DokuWiki does not use [[wp>​CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>​config]] file. Hint: If DokuWiki is a link, then it's enabled.
   * When a section'​s heading is changed, its bookmark changes, too. So don't rely on section linking too much.   * When a section'​s heading is changed, its bookmark changes, too. So don't rely on section linking too much.
Line 97: Line 97:
 You can also use an image to link to another internal or external page by combining the syntax for links and [[#​images_and_other_files|images]] (see below) like this: You can also use an image to link to another internal or external page by combining the syntax for links and [[#​images_and_other_files|images]] (see below) like this:
  
-  [[http://www.php.net|{{wiki:​dokuwiki-128.png}}]]+  [[http://​php.net|{{wiki:​dokuwiki-128.png}}]]
  
-[[http://www.php.net|{{wiki:​dokuwiki-128.png}}]]+[[http://​php.net|{{wiki:​dokuwiki-128.png}}]]
  
 Please note: The image formatting is the only formatting syntax accepted in link names. Please note: The image formatting is the only formatting syntax accepted in link names.
Line 137: Line 137:
 Resize to given width and height((when the aspect ratio of the given width and height doesn'​t match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:​dokuwiki-128.png?​200x50}} Resize to given width and height((when the aspect ratio of the given width and height doesn'​t match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:​dokuwiki-128.png?​200x50}}
  
-Resized external image: ​          ​{{http://​de3.php.net/​images/​php.gif?​200x50}}+Resized external image: ​          ​{{http://​php.net/​images/​php.gif?​200x50}}
  
   Real size:                        {{wiki:​dokuwiki-128.png}}   Real size:                        {{wiki:​dokuwiki-128.png}}
   Resize to given width: ​           {{wiki:​dokuwiki-128.png?​50}}   Resize to given width: ​           {{wiki:​dokuwiki-128.png?​50}}
   Resize to given width and height: {{wiki:​dokuwiki-128.png?​200x50}}   Resize to given width and height: {{wiki:​dokuwiki-128.png?​200x50}}
-  Resized external image: ​          ​{{http://​de3.php.net/​images/​php.gif?​200x50}}+  Resized external image: ​          ​{{http://​php.net/​images/​php.gif?​200x50}}
  
  
Line 403: Line 403:
 ==== Syntax Highlighting ==== ==== Syntax Highlighting ====
  
-[[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 uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<​nowiki><​code java></​nowiki>''​ or ''<​nowiki><​file 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 uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<​nowiki><​code java></​nowiki>''​ or ''<​nowiki><​file java></​nowiki>''​.
  
 <code java> <code java>
Line 417: Line 417:
 </​code>​ </​code>​
  
-The following language strings are currently recognized: //4cs6502acme6502kickass6502tasm68000devpacabapactionscript-french, actionscript,​ actionscript3, ​adaalgol68apacheapplescriptasmaspautoconfautohotkeyautoitavisynthawkbascomavrbashbasic4glbfbibtexblitzbasicbnfboo, c, c_loadrunner,​ c_mac, ​caddclcadlispcfdgcfmchaiscriptcilclojurecmakecobolcoffeescriptcppcpp-qtcsharpcsscuesheet, d, dcsdelphidiffdivdosdot, e, epc, ecmascripteiffelemailerlangeuphoriaf1falconfofortranfreebasicfsharpgambasgenerogenie, gdb, glslgmlgnuplotgogroovy, gettext, ​gwbasichaskellhicesthq9plushtmlhtml5iconidliniinnointercalio, j, java5javajavascriptjquerykixtartklonecklonecpplatexlblispllvmlocobasiclogtalklolcodelotusformulaslotusscriptlscriptlsl2luam68kmagiksfmakemapbasicmatlabmircmodula2modula3, mmix, mpasmmxmlmysqlnewlispnsisoberon2objcobjeckocaml-briefocamloobasoracle8, oracle11, ​oxygeneozpascalpcreperl, perl6, ​perpfphp-briefphppike, pic16, ​pixelbenderpliplsqlpostgresqlpovraypowerbuilderpowershellproftpdprogressprologpropertiesprovidexpurebasicpyconpythonq, qbasic, ​railsrebolregrobotsrpmspecrsplusrubysasscalaschemescilabsdlbasicsmalltalksmartysqlsystemverilogtclteratermtextthinbasictsqltyposcriptuniconuscriptvalavbnetvbverilogvhdlvimvisualfoxprovisualprologwhitespacewinbatch, whois, ​xbasicxmlxorg_confxppyamlz80zxbasic//+The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 ​actionscript ada aimms algol68 apache applescript ​apt_sources arm asm asp asymptote ​autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl ​batch bf biblatex ​bibtex blitzbasic bnf boo caddcl cadlisp ​ceylon ​cfdg cfm chaiscript ​chapel ​cil c_loadrunner ​clojure ​c_mac cmake cobol coffeescript ​cpp cpp-qt ​cpp-winapi ​csharp css cuesheet ​c_winapi dart dcl dcpu16 ​dcs delphi diff div dos dot ecmascript eiffel email epc e erlang euphoria ​ezt f1 falcon fo fortran freebasic ​freeswitch ​fsharp gambas ​gdb genero genie gettext ​glsl gml gnuplot go groovy gwbasic haskell ​haxe hicest hq9plus html html4strict ​html5 icon idl ini inno intercal io ispfpanel ​java5 java javascript ​jcl j jquery ​julia kixtart klonec klonecpp ​kotlin ​latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic ​mathematica ​matlab ​mercury metapost ​mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx ​newlisp ​nginx nimrod ​nsis oberon2 objc objeck ocaml-brief ocaml octave ​oobas oorexx oracle11 ​oracle8 oxygene oz parasail parigp ​pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql ​postscript ​povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python ​qbasic qml racket ​rails rbs rebol reg rexx robots rpmspec rsplus ruby rust sas sass scala scheme scilab ​scl sdlbasic smalltalk smarty ​spark sparql ​sql standardml stonescript swift systemverilog ​tclegg ​tcl teraterm ​texgraph ​text thinbasic tsql twig typoscript unicon ​upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace ​whois winbatch xbasic xml xojo xorg_conf xpp yaml z80 zxbasic// 
 + 
 +There are additional [[doku>​syntax_highlighting|advanced options]] available for syntax highlighting,​ such as highlighting lines or adding line numbers.
  
 ==== Downloadable Code Blocks ==== ==== Downloadable Code Blocks ====
Line 498: Line 500:
 | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). |
  
-The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered.+The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered.
  
 By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''​reverse''​ parameter, or display the feed as is with ''​nosort''​. By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''​reverse''​ parameter, or display the feed as is with ''​nosort''​.
wiki/syntax.1493427290.txt.gz · Last modified: 2017/04/29 00:54 by Rek