Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-25 Thread Hans Hagen
On 8/24/2016 11:24 AM, Procházka Lukáš Ing. wrote: Hello Mojca, I'm sure Hans knows the invocation by heart, but I can look it up as well. This is how the output looks like: http://source2.contextgarden.net/tex/context/sample/sample-tex.html yes, that's the look I'd like to achieve.

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Jan Tosovsky
On 2016-08-24 Lukáš Procházka wrote: > > does anybody know about a tool (maybe ConTeXt has something like this > built-in) which would convert ConTeXt code into pretty-printed HTML > code? For HTML I'd also consider javascript highlighters https://highlightjs.org/ http://prismjs.com/

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
... Great, that's it! Thanks again, Mojce. Best regards, Lukas On Wed, 24 Aug 2016 13:55:38 +0200, Mojca Miklavec wrote: mtxrun --script scite --tree --numbers --source=Attach.mkiv --target=Attach.txt I suspect that the script wants folders. Mojca --

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 13:36, Procházka Lukáš Ing. wrote: > Hello Mojca, > > I tried this: > > mtxrun --script scite --tree --numbers --source=Attach.mkiv > --target=Attach.txt > mtxrun --script scite --tree --numbers > --source=d:/Lukas/ConTeXt/Test/Attach.mkiv --target=Attach.txt > mtxrun --script

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, I tried this: mtxrun --script scite --tree --numbers --source=Attach.mkiv --target=Attach.txt mtxrun --script scite --tree --numbers --source=d:/Lukas/ConTeXt/Test/Attach.mkiv --target=Attach.txt mtxrun --script scite --tree --numbers --source=d:\Lukas\ConTeXt\Test\Attach.mkiv

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 11:24, Procházka Lukáš Ing. wrote: > Hello Mojca, > >> I'm sure Hans knows the invocation by heart, but I can look it up as well. >> This is how the output looks like: >> http://source2.contextgarden.net/tex/context/sample/sample-tex.html > > yes, that's the look I'd like

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, I'm sure Hans knows the invocation by heart, but I can look it up as well. This is how the output looks like: http://source2.contextgarden.net/tex/context/sample/sample-tex.html yes, that's the look I'd like to achieve. Lukas Mojca -- Ing. Lukáš Procházka |

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Taco, On Wed, 24 Aug 2016 09:56:20 +0200, Taco Hoekwater wrote: http://source.contextgarden.net does something similar. That is a ruby web application. If you want it, I could send you the source, I'd be very pleased. but you need to understand ruby. Lua would

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Taco Hoekwater
http://source.contextgarden.net does something similar. That is a ruby web application. If you want it, I could send you the source, but you need to understand ruby. Best wishes, Taco PS I just updated http://source.contextgarden.net to the newest ‘current’. > On 24 Aug 2016, at 09:27, Mojca

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 09:05, Procházka Lukáš Ing. wrote: > Hello Mojca, > > thanks for the answer. > > I need a COMMAND LINE solution for Windows - my intention is to process many > (tens-hundreds) ConTeXt files into HTML - just to make their code > better-readable. Vim *is* command-line, isn't

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Jan U. Hasecke
Maybe this is a job for pandoc. See http://pandoc.org/ juh -- Das ZEN von Pandoc Bücher und E-Books einfach und professionell produzieren http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/ Paperback (232 Seiten) und E-Book

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Procházka Lukáš Ing .
Hello Mojca, thanks for the answer. I need a COMMAND LINE solution for Windows - my intention is to process many (tens-hundreds) ConTeXt files into HTML - just to make their code better-readable. And - as e.g. Ctx wiki has pretty-printing Ctx source - I believe there is such tool... Best

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 07:15, Lukáš Procházka wrote: > Hello, > > does anybody know about a tool (maybe ConTeXt has something like this > built-in) which would convert ConTeXt code into pretty-printed HTML code? > > E.g.: > > t.mkiv > \starttext > \foo[bar] baz > \stoptext > > > to be

[NTG-context] Pretty print Ctx code into HTML

2016-08-23 Thread Lukáš Procházka
Hello, does anybody know about a tool (maybe ConTeXt has something like this built-in) which would convert ConTeXt code into pretty-printed HTML code? E.g.: t.mkiv \starttext \foo[bar] baz \stoptext to be rewritten into e.g.: t.html \starttext \foo[bar] baz \stoptext