howto:syntax
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:syntax [2019/08/11 16:44] – [Code Blocks] ve7hzf | howto:syntax [2024/08/03 08:51] (current) – [Control Macros] va7fi | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Editing Mode ====== | ====== Editing Mode ====== | ||
- | | + | {{ howto: |
- | * Next, you can edit the entire page using the pen icon | + | |
- | {{howto:edit1.png }}{{howto: | + | * After that, the "pen icon" will appear on the right, which allows |
+ | * Alternatively, | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== News Item ====== | ||
+ | To post a news item: | ||
+ | - Make sure you are logged in. | ||
+ | - Click on the '' | ||
+ | - Enter a **short** title. | ||
+ | - Write the article below the title (make sure you leave the title between the 6 equal signs as is). | ||
+ | - Before you save, select the " | ||
+ | - Write the year and month (first three letters) in the tags field. | ||
+ | |||
+ | Here's a short video demonstration: | ||
+ | |||
+ | {{ youtube> | ||
====== Formatting Syntax ====== | ====== Formatting Syntax ====== | ||
Line 41: | Line 59: | ||
==== External ==== | ==== External ==== | ||
- | External links are recognized automagically: | + | External links are recognized automagically: |
DokuWiki supports multiple ways of creating links. External links are recognized | DokuWiki supports multiple ways of creating links. External links are recognized | ||
- | automagically: | + | automagically: |
- | link text as well: [[http:// | + | link text as well: [[https:// |
addresses like this one: < | addresses like this one: < | ||
Line 89: | Line 107: | ||
* For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" | ||
- | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[https:// |
<?php | <?php | ||
/** | /** | ||
Line 102: | Line 120: | ||
You can also use an image to link to another internal or external page by combining the syntax for links and [[# | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
- | [[http:// | + | [[https:// |
- | [[http:// | + | [[https:// |
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 142: | Line 160: | ||
Resize to given width and height((when the aspect ratio of the given width and height doesn' | Resize to given width and height((when the aspect ratio of the given width and height doesn' | ||
- | Resized external image: | + | Resized external image: |
Real size: {{wiki: | Real size: {{wiki: | ||
Resize to given width: | Resize to given width: | ||
Resize to given width and height: {{wiki: | Resize to given width and height: {{wiki: | ||
- | Resized external image: | + | Resized external image: |
Line 371: | Line 389: | ||
< | < | ||
- | This is some text which contains addresses like this: http:// | + | This is some text which contains addresses like this: https:// |
</ | </ | ||
The same is true for %%// | The same is true for %%// | ||
< | < | ||
- | This is some text which contains addresses like this: http:// | + | This is some text which contains addresses like this: https:// |
</ | </ | ||
The same is true for %%// | The same is true for %%// | ||
Line 386: | Line 404: | ||
This is text is indented by two spaces. | This is text is indented by two spaces. | ||
- | <code> | + | <pcode> |
This is preformatted code all spaces are preserved: like <-this | This is preformatted code all spaces are preserved: like <-this | ||
</ | </ | ||
Line 408: | Line 426: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki: | + | [[wiki: |
<code java> | <code java> | ||
Line 423: | Line 441: | ||
The following language strings are currently recognized: | The following language strings are currently recognized: | ||
- | + | <WRAP indent>< | |
- | 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 c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d 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 q 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> | There are additional [[doku> | ||
Line 445: | Line 464: | ||
- | ===== Embedding HTML and PHP ===== | + | ===== Embedding HTML ===== |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | You can embed raw HTML code into your documents by using the '' |
HTML example: | HTML example: | ||
- | < | + | < |
< | < | ||
This is some <span style=" | This is some <span style=" | ||
Line 467: | Line 486: | ||
</ | </ | ||
- | PHP example: | ||
- | |||
- | < | ||
- | <php> | ||
- | echo 'The PHP version: '; | ||
- | echo phpversion(); | ||
- | echo ' (generated inline HTML)'; | ||
- | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
- | </ | ||
- | |||
- | <php> | ||
- | echo 'The PHP version: '; | ||
- | echo phpversion(); | ||
- | echo ' (inline HTML)'; | ||
- | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
- | **Please Note**: HTML and PHP embedding | + | **Please Note**: HTML embedding |
===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
- | [[wiki: | + | [[wiki: |
^ Parameter | ^ Parameter | ||
Line 513: | Line 507: | ||
**Example: | **Example: | ||
- | {{rss>http:// | + | {{rss>https:// |
- | {{rss>http:// | + | {{rss>https:// |
===== Control Macros ===== | ===== Control Macros ===== | ||
- | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are available: |
^ Macro ^ Description | | ^ Macro ^ Description | | ||
| %%~~NOTOC~~%% | | %%~~NOTOC~~%% | ||
- | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (adding this macro will force DokuWiki to rerender a page on every call | |
===== Syntax Plugins ===== | ===== Syntax Plugins ===== |
howto/syntax.1565567073.txt.gz · Last modified: 2019/08/11 16:44 by ve7hzf