Re: Help with creating examples
"H. William Welliver III" <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Perfect… exactly what was looking for. Thanks! Bill > On Dec 10, 2016, at 9:53 AM, Pontus Östlund <[email protected]> wrote: > > There's a Pike to html converter in Tools.Standalone.pike_to_html (http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/Tools/Standalone/pike_to_html/convert.html <http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/Tools/Standalone/pike_to_html/convert.html>). > > pike -x pike_to_html file.pike > file.html > > It also has a public method so > > string code = "Some pike code..."; > string hl = Tools.Standalone.pike_to_hml()->convert(code); > > will also do it. > > The colors aren't written directly to the output, instead you'd have to add that yourself via CSS classes. The classes used are documented in the refdoc page. > > # Pontus