This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:syntax [2018/05/03 14:36] 127.0.0.1 external edit |
wiki:syntax [2019/07/15 16:45] (current) admin |
||
---|---|---|---|
Line 30: | Line 30: | ||
You should use forced newlines only if really needed. | You should use forced newlines only if really needed. | ||
+ | ## Frequent Used Code | ||
+ | <wrap lo>Reference: | ||
+ | - Please refer to blablabal | ||
+ | </wrap> | ||
+ | |||
+ | ``` | ||
+ | <wrap lo>Reference: | ||
+ | - Please refer to blablabal | ||
+ | </wrap> | ||
+ | ``` | ||
+ | |||
+ | <file> | ||
+ | 纯文本格式. | ||
+ | 用于复制黏贴一些文档 | ||
+ | </file> | ||
+ | |||
+ | ``` | ||
+ | <file> | ||
+ | 纯文本格式. | ||
+ | 用于复制黏贴一些文档 | ||
+ | </file> | ||
+ | ``` | ||
+ | \\ | ||
+ | |||
+ | ##Plugin Syntax | ||
+ | |||
+ | ###Video Sharing Site Plugin | ||
+ | ``` | ||
+ | {{youtube>zYwCmcB0XMw}} | ||
+ | ``` | ||
+ | {{youtube>zYwCmcB0XMw}} | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ###Folded Plugin | ||
+ | ``` | ||
+ | This is example ++text | with some of it only shown when you unfold it++. And after that | ||
+ | the text just continues to flow in the same paragraph. | ||
+ | ``` | ||
+ | |||
+ | This is example ++text | with some of it only shown when you unfold it++. And after that | ||
+ | the text just continues to flow in the same paragraph. | ||
+ | |||
+ | ``` | ||
+ | ++++ This is example text block. | | ||
+ | | This table | is only shown | when you unfold the block | | ||
+ | ++++ | ||
+ | ``` | ||
+ | |||
+ | ++++ This is example text block. | | ||
+ | | This table | is only shown | when you unfold the block | | ||
+ | ++++ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | |||
+ | ###Block Quote | ||
+ | ``` | ||
+ | <blockquote> | ||
+ | There is nothing either good or bad, but thinking makes it so. | ||
+ | |||
+ | <cite>William Shakespeare, "Hamlet", Act 2 scene 2</cite> | ||
+ | </blockquote> | ||
+ | He said <q>That's life!</q> and moved on. | ||
+ | ``` | ||
+ | |||
+ | <blockquote> | ||
+ | There is nothing either good or bad, but thinking makes it so. | ||
+ | |||
+ | <cite>William Shakespeare, "Hamlet", Act 2 scene 2</cite> | ||
+ | </blockquote> | ||
+ | He said <q>That's life!</q> and moved on. | ||
===== Links ===== | ===== Links ===== | ||
Line 84: | Line 156: | ||
* 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://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): |
+ | |||
+ | <code> | ||
<?php | <?php | ||
/** | /** | ||
Line 257: | Line 331: | ||
Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | -> <- <-> => <= <=> (c) (tm) (r) |
"He thought 'It's a man's world'..." | "He thought 'It's a man's world'..." | ||
<code> | <code> | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | -> <- <-> => <= <=> (c) (tm) (r) |
"He thought 'It's a man's world'..." | "He thought 'It's a man's world'..." | ||
</code> | </code> | ||
Line 269: | Line 343: | ||
There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]]. | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]]. | ||
- | ===== Quoting ===== | ||
- | |||
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | ||
- | |||
- | <code> | ||
- | I think we should do it | ||
- | |||
- | > No we shouldn't | ||
- | |||
- | >> Well, I say we should | ||
- | |||
- | > Really? | ||
- | |||
- | >> Yes! | ||
- | |||
- | >>> Then lets do it! | ||
- | </code> | ||
- | |||
- | I think we should do it | ||
- | |||
- | > No we shouldn't | ||
- | |||
- | >> Well, I say we should | ||
- | |||
- | > Really? | ||
- | |||
- | >> Yes! | ||
- | |||
- | >>> Then lets do it! | ||
===== Tables ===== | ===== Tables ===== | ||
Line 360: | Line 405: | ||
Note: Vertical alignment is not supported. | Note: Vertical alignment is not supported. | ||
+ | |||
===== No Formatting ===== | ===== No Formatting ===== |