Cookbook /
Precode - general utility block markup for displaying codes
Precode
Package version/links:
pmwiki-2.3.13
Skin - notebook-nt
precode-2.2.1-20230213
Sample1 Sample1 | Sample2 Sample2 | Sample3 Sample3 | Sample4 Sample4 - advanced linenum | Sample5 Examples showing line highlighting and presenter | Sample6 Examples showing line highlighting + presenter + sytaxhighliting
- General utility block markup for displaying codes on wiki pages.



About Precode
Some issues Precode addresses:
- Add line number to preformatted code/text.
- The line counter/number can be reset.
- Choice for list-styles
disc | circle | square | decimal | decimal-leading-zero |
lower-roman | upper-roman | lower-greek | lower-latin | upper-latin |
armenian | georgian | lower-alpha | upper-alpha | none | inherit |
disclosure-open | disclosure-closed - Line numbers can be custom styled.
Usage
- Adapters (included)
- chilli
- geshi
- highlightjs
- prettify
- prismjs
- rainbow
- sourceblock.geshi
- syntaxlove.syntaxhighlighter
Notes and Comments
Bugs
See Also
- W3c Org
Contributors
Demo:
![]() | ||
Package/Apps | Minimum | Last test |
---|---|---|
Php | 5 >= 5.6.40 | 8.0.19 |
PmWiki | 2.2.122 | 2.3.15 |
Browser | Most browsers built after 2014 with JavaScript support + CSS2+ |
Files/Download
Latest: precode-latest.tgz
(archives)
Author
- V.Krishn