DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:wikiformatstyling

This is an old revision of the document!


Wiki-Style Script

Compatible with DokuWiki

Greebo, 2018-04-22

plugin If there are wiki syntax of bold, italic, underlined, or monospaced text remaining (such as those in headers and link texts), this plugin will apply them. You can also change color of characters in headers and link texts. Characters of nowiki syntax won

Last updated on
2019-01-13
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to header2, header3, wikistyle2html

Tagged with color, headers, headings, syntax

:!: このページを日本語でご覧頂けます。(Japanese version of this page available)

Summary

We made this plugin to enable styling headers by wiki syntax (bold, italic, underlined, monospaced, and colored text).

Currently wiki syntax in headers is not allowed (See this faq). This plugin will solve this inconvenience a little.

You can also use the syntax in link texts.

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

Write like this:

==== **Styling** //headers// ''is'' __fun!__ ====
=== $[hdcolor $\red$\$]You can$[/hdcolor$] $[hdcolor $\#800000$\$]color texts!$[/hdcolor$] ===
[[pagename|**You can** //also// __style__ link texts!!]]

Syntax

In headers and link texts (and maybe somewhere else):

  **Bold** //Italic// __Underlined__ ''Monospaced'' (same to default DokuWiki syntax)
  $[hdcolor $\HTML color code$\$]Coloring texts$[/hdcolor$]

\// will be //.
:// won't be converted.

Development

Change Log

  • 2018-10-09
    • Initial release
  • 2019-01-13
    • The script.js was updated to 2.1. Fixed known bugs, and extended the scope and out-of-range of the script.

Known Bugs and Issues

  1. The syntax documentation includes an example under “Windows shares” that breaks if this plugin is enabled. The example includes a comment with a double asterisk that turns on bold and ends with a null string that is interpreted as TT text. These changes persist to the end of the document.
  2. Admin > Access Control List Manager fails. The page layout is wrong, and any attempt to examine the ACL for a particular item/user results in a message “CRSF Attack” and no modifications can be made.
    1. Thanks for your report. I'll update the plugin. Please wait a moment until the problems are fixed. — hokkaidoperson 2019-01-24 15:35

ToDo/Wish List

Currently none

Staff

Discussion

There is a problem when this plugin is used: lists of URLs are corrupted. See https://forum.dokuwiki.org/post/64204;nocount for my first report of this. In essence the plugin converts http:// to http:<i> or the closing form.

Thank you for your report. I'll investigate the issue and attempt to fix it. — hokkaidoperson 2019-01-08 15:07
I tried copying pcnt.php to http.php and editing the latter. I changed the class name accordingly but had no success in getting it to recognise 'https?:' for the start and '\s' for the end of a URL. — MartinR 2019-01-09 09:54
My co-worker is now recreating the script, and I heard that his work had been going smoothly so far. Please wait until he finishes the work. I wish I could help him… (I'm not used to Javascript) — hokkaidoperson 2019-01-10 06:38
I've updated the plugin. — hokkaidoperson 2019-01-13 11:17
Thanks to you both, my usage case works fine now. — MartinR 2019-01-16 22:28
plugin/wikiformatstyling.1548340625.txt.gz · Last modified: 2019-01-24 15:37 by hokkaidoperson

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki