Re: [NTG-context] Syntax highlighted output

2007-04-29 Thread Chris Rawnsley
On 29/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote: I will need two three days to work on this. Sorry I misunderstood you. I thought that function was already implemented. Don't feel you have to rush to get this implemented :) I can bear with the slow ness. Right now, this is not possible.

Re: [NTG-context] Syntax highlighted output

2007-04-29 Thread Chris Rawnsley
On 29/04/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: Hi Chris, replace this two lines with \usetypescript[palatino][texnansi] % use better texnansi than ec \setupbodyfont[palatino] % rm and 12pt are default values Yes that did the trick. Thanks! -- Chris

Re: [NTG-context] Syntax highlighted output

2007-04-29 Thread Chris Rawnsley
On 29/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote: The nuts and pieces are there, but right now there is no such function. Here is what you can do. Write a batch script which calls 2context (see the complete command in \runvimsyntax in t-vim). Run it on the file that you want. After loading

Re: [NTG-context] Syntax highlighted output

2007-04-29 Thread Chris Rawnsley
On 29/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote: Now after loading vim, add \definevimtyping [typePHP] [syntax=php, before={\bgroup \let\runvimsyntax\gobbleoneargument}, after={\egroup}] and then use \typePHP{copy.php} I can't

Re: [NTG-context] Syntax highlighted output

2007-04-29 Thread Chris Rawnsley
I can also see a need for relative paths for inputted files. In my setup, I like to compile individual components of my document. When I need to look at whole document I'll do that at the end. For instance, for inputting images, I put this line at the top of the component:

Re: [NTG-context] Syntax highlighted output

2007-04-29 Thread Chris Rawnsley
On 29/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Sun, 29 Apr 2007, Aditya Mahajan wrote: Well, then I need to make some more changes in the module. Since, you are up against a deadline right now, and are willing to suffer the delay caused by this module, I will trying hacks to make

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
you can also consider my 2 cents http://www.logosrl.it/context/modules/2007-04-17/verb-modu_ebook.pdf -- luigi Thanks for your reply. From what I understand, there isn't currently a verb file for PHP and I gather they are quite lengthy to write. Unfortuantely, I don't have the time to write

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
Thank you for your reply. It got closer this time but through a different error: ! I can't find file `c_Implementation-vimsyntax.tmp-vimsyntax.tmp'. to be read again \relax \dodotypevimfile ...\input #2-vimsyntax.tmp\relax

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
On 28/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote: Do you have write18 enabled? Check the log file, it should say something like \wirte18 enabled. Yep the log file mentions that line. system(texmfstrart bin:vim -c ...long list of arguments...) executed Well, firstly, the log says this:

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
Sorry I missed that other email you posted! Going over it with fine tooth comb :-) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
On 28/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote: You do not need to mention ../ and ../../. ConTeXt automatically searches for product and project files in one higher directory. Ah thanks for the tip. I can certainly see that becoming useful in the future. What does texmfstart --locate

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
You need vim.exe to be in your PATH. Does texmfstart bin:vim start vim? Right, this now starts ViM. When I went to compile it threw a different error: VIM - Vi IMproved 7.0 (2006 May 7, compiled May 7 2006 16:18:30) Garbage after option argument: -u NONE -e -c set More info with: vim -h ! I

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
Ah ha! It is a very simple thing that is stopping it. In t-vim.tex on line 312 the preceeding double quote needed to be removed and on line 324 the double quote before %1 needed to be removed. Line 312 before: -u NONE % No need to read unnessary configurations Line 312 after:

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
LuaTeX does certainly look very promising indeed. - If you want to typeset a big chunk of code, it is possible to convert the code using 2context and then just import this code. There is no user interface for it. In case you need it, I can provide that. I think that solution would be best for

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
On 28/04/07, Aditya Mahajan [EMAIL PROTECTED] wrote: Suppose you have a file called program.php. You create a batch file that runs the texmfstart bin:vim ... line to create program-vimsyntax.tmp file. Then in your ConTeXt code, you can say, \typevimfile[convert=no][program.php] Ah that's