It can be used as simple as this:
% highlight -ls ide-anjuta variadic.cpp -o variadic.cpp.html
where -l means put line numbers and "-s ide-anjuta" sets style
My previous post is already re-highlighted with it.
It generates quite readable css and html files. I've pasted (and tuned a bit to remove bright red comments) css in my blogspot template so I will be able to repaint my code in case of background color change in future.
And the last... Why the fuck there is no automatic code highlighter here? Hey Google, it would make lots of nerds very happy!
Thanks for the investigation, the way you highlight your code snippets I like more than the way I found: use Google's syntax highlighter, so I just added these lines to my template, just before the head closing tag:
ReplyDelete< link href='http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css' rel='stylesheet' type='text/css'/>
< script src='http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js' type='text/javascript'/>
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. job posting site
ReplyDeleteI admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Auto verkaufen
ReplyDeleteKeep functioning ,great job!스웨디시
ReplyDeleteAugust 25, 2021 at 10:07 AM
우리카지노 계열 온라인카지노 에이전시 / CASINO SEO
ReplyDelete오랜 역사를 자랑하는
대한민국 온라인 카지노 브랜드 우리카지노
카지노사이트
온라인카지노
우리카지노
온라인바카라
바카라사이트
라이브카지노
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. Βίζα των ΗΠΑ Online
ReplyDeletethis is really nice to read..informative post is very good to read..thanks a lot! Amerikansk visumsøknad
ReplyDelete