Uploaded new recipe 'Precode'
Precode is a general utility block markup for displaying codes on wiki pages.
http://insteps.net/pr/a/pmwiki/Cookbook/Precode

Demo:
http://insteps.net/pr/a/pmwiki/Cookbook/Precode-sample1
http://insteps.net/pr/a/pmwiki/Cookbook/Precode-sample2

It add markup 

```
[@
  .... lines of code ....
  .... lines of code ....
  .... lines of code ....
@]
```

It outputs  <pre><code>...</pre></code> on webpage.

Precode markup comes with feature:
1. Add line number to preformatted code/text.
2. The line counter/number can be reset.
3. Line counter can use following 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
4. Line numbers can be custom styled.

Precode uses js and css' properties
 counter-reset , counter-increment, content
to insert and number the lines.

Some potential uses.
1. Long rfc style text can be input and referenced by line.
2. Can be used by syntax-highlighting js tools like highlightjs with all above 
    features.

-- 
Regards.
V.Krishn

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to