I'm looking for a Latex-aware fellow to help out here:
so far highlighting for PDFs had to be disabled by this incantation:
:ini: {basebackend@docbook:'':ini}
:hal: {basebackend@docbook:'':hal}
:ngc: {basebackend@docbook:'':ngc}
If the below latex fragment is added to
/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty, this adds some basic
hightlighting in PDF for hal, ini and ngc files
I'm unsure how to include this properly, I dont understand latex well enough
for proper highlighting, this slightly changed sequence is still needed - I
dont understand why:
:ini: {basebackend@docbook:'ini':ini}
:hal: {basebackend@docbook:'hal':hal}
:ngc: {basebackend@docbook:'ngc':ngc}
Maybe some kind soul can help on integrating this.
- Michael
for /usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty:
%%% begin LinuxCNC
%%%
%%% INI files - Michael Haberler 2012
\lst@definelanguage{ini}%
{morecomment=[l]\#,%
morestring=[b]",%
morecomment=[s][keywordstyle]{\[}{\]},%
}%
%%% LinuxCNC HAL files - Michael Haberler 2012
\lst@definelanguage{hal}%
{morekeywords={loadrt,unloadrt,loadusr,waitusr,unloadusr,unlinkp,%
unload,newsig,delsig,sets,stype,gets,linkps,linksp,%
linkpp,net,unlinkp,setp,ptype,getp,addf,delf,%
start,stop,show,item,save,source},%
sensitive=true,%
morecomment=[l]\#,%
}%
%%% LinuxCNC RS274NGC Gcode files - Michael Haberler 2012
\lst@definelanguage{ngc}%
{morekeywords={sub,endsub,while,endwhile,if,else,endif,do,call,%
break,continue,return,repeat,endrepeat,elseif,cos,tan,asin,acos,%
atan,exp,ln,sqrt,fup,fix,abs,or,xor,and,mod,gt,lt,ge,le,eq,ne,exists},%
sensitive=false,%
% this doesnt work as expected - comments dont terminate :-/ : %
%morecomment=[s]{(}{)},%
morecomment=[l]\;%
}%
%%%% end LinuxCNC
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers