11source-highlighting EMC languages in HTML documents
2- =================================================
2+ ===================================================
33
44I've created GNU source-highlight language definitions for G-code and
5- halcmd to highlight .hal and .ngc files in asciidoc. .ini file
5+ halcmd to highlight .hal and .ngc files in asciidoc. INI file
66highlighting works out of the box. All three need a bit of trickery to
7- work cleanly for both html and pdf .
7+ work cleanly for both HTML and PDF .
88
99Highlighting is for HTML output only at this point in time. To have
10- PDF's highlighted, the file
10+ PDFs highlighted, the file
1111/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty needs to be
12- extended to deal with ngc, hal and ini formats, and put into the build
12+ extended to deal with ngc, HAL and INI formats, and put into the build
1313directory so dblatex can find it.
1414
15- Highlighting halcmd, ini and ngc source in HTML is now integrated into
16- the documentation build process. tcl, python , sh etc keep working out
15+ Highlighting halcmd, INI and ngc source in HTML is now integrated into
16+ the documentation build process. Tcl, Python , sh etc keep working out
1717of the box.
1818
1919NB: source-highlight's mechanisms to find .lang and .map files is
@@ -22,15 +22,15 @@ directory (/usr/share/source-highlight) needs to be replicated under 'local',
2222and a new lang.map generated in there (all language definitions are
2323relative to this directory, and include each other).
2424
25- Using ngc, hal and ini file snippets in your .txt files:
25+ Using ngc, HAL and INI file snippets in your .txt files:
2626========================================================
2727Copy this to the top of your txt file:
2828----------------- snip ----------------
2929:ini: {basebackend@docbook:'':ini}
3030:hal: {basebackend@docbook:'':hal}
3131:ngc: {basebackend@docbook:'':ngc}
3232
33- // begin a listing of ini/hal/ngc files like so:
33+ // Begin a listing of ini/hal/ngc files like so:
3434//[source,{ini}]
3535//[source,{hal}]
3636//[source,{ngc}]
@@ -60,7 +60,7 @@ build (including a massive initial rebuild ;-)
6060Building HTML examples in the this directory
6161============================================
6262
63- To produce pdf and html samples, type 'make examples' .
63+ To produce PDF and HTML samples, type 'make examples' .
6464
6565This should produce {ini-demo,hal-demo,ngc-demo}.{pdf,html} files in
6666the current directory, with proper highlighting of HTML only. PDF files
0 commit comments