Precode - general utility block markup for displaying codes

Precode

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.

Some of the potential uses of Precode  
 Long rfc style text can be input and referenced by line.
 Can be used by syntax-highlighting tools like Highlight.js, GeSHi with all its features.

About Precode

Some issues Precode addresses:

  1. Add line number to preformatted code/text.
  2. The line counter/number can be reset.
  3. 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
  4. Line numbers can be custom styled.

Usage

  1. Adapters (included)
    1. chilli
    2. geshi
    3. highlightjs
    4. prettify
    5. prismjs
    6. rainbow
    7. sourceblock.geshi
    8. syntaxlove.syntaxhighlighter

Notes and Comments

Bugs

See Also

Contributors

Demo:

  • Please see links at the beginning of this page.

 Requirements
Package/AppsMinimumLast test
Php5 >= 5.6.408.0.19
PmWiki2.2.1222.3.15
BrowserMost browsers built after 2014
with JavaScript support + CSS2+

Files/Download

Latest: precode-latest.tgz
(archives)

Author

  • V.Krishn
Edit - History - Print - Recent Changes - Search
Page last modified on January 21, 2023, at 05:20 PM