Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-24 Thread Berend de Boer
 Gerben == Gerben Wierda gerben.wie...@rna.nl writes:

 Gerben == Gerben Wierda gerben.wie...@rna.nl writes:
 
Gerben For 'SQL' I assume I should use 'sql'. When I do that,
Gerben exactly the same happens.
 
 I mean select instead of SELECT.

Hi Gerben,

Just following up publicly on the files you sent me, this works for me:

  \setuptyping[SQL][palet=colorpretty]
  \def\typeSQLfile{\typefile[SQL]}
  \starttext
  \typeSQLfile{test2.txt}
  \stoptext

So changes:

1. Don't define the typing, it's already.

2. use SQL, not sql.

3. Your SQL keywords must be lowercase not UPPERcase, else they won't
   get highlighted.

4. comments inside your SQL file trip up the parser, don't know why,
   but just leave them out.


-- 
Groetjes,

Berend.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-15 Thread Gerben Wierda

On 11 Jun 2009, at 15:05, Hans Hagen wrote:


Gerben Wierda wrote:
Nobody has a solution for my problem with non-working colouration  
of code?


the sql filter in mkii was not written by me ...


So, who did? Or is there documentation on how this works so I can look  
at it myself?


G

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-15 Thread Gerben Wierda

On 11 Jun 2009, at 14:22, Berend de Boer wrote:


Gerben == Gerben Wierda gerben.wie...@rna.nl writes:


   Gerben For 'SQL' I assume I should use 'sql'. When I do that,
   Gerben exactly the same happens.

I mean select instead of SELECT.


Maakt geen verschil.

Gerben

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-15 Thread Gerben Wierda


On 11 Jun 2009, at 14:22, Berend de Boer wrote:


Gerben == Gerben Wierda gerben.wie...@rna.nl writes:


   Gerben For 'SQL' I assume I should use 'sql'. When I do that,
   Gerben exactly the same happens.

I mean select instead of SELECT.


Sorry, English: makes no difference.

G
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-11 Thread Gerben Wierda
Nobody has a solution for my problem with non-working colouration of  
code?


G

On 9 Jun 2009, at 00:12, Gerben Wierda wrote:



On 8 Jun 2009, at 09:59, Berend de Boer wrote:


Gerben == Gerben Wierda gerben.wie...@rna.nl writes:


  Gerben verb-sql.tex seems not to work correctly. Is it broken or
  Gerben am I doing something wrong?

What if you use lowercase?


For 'SQL' I assume I should use 'sql'. When I do that, exactly the  
same happens.


Yours,

Gerben

___
If your question is of interest to others as well, please add an  
entry to the Wiki!


maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-11 Thread Berend de Boer
 Gerben == Gerben Wierda gerben.wie...@rna.nl writes:

Gerben For 'SQL' I assume I should use 'sql'. When I do that,
Gerben exactly the same happens.

I mean select instead of SELECT.

-- 
Groetjes,

Berend.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-11 Thread Hans Hagen

Gerben Wierda wrote:

Nobody has a solution for my problem with non-working colouration of code?


the sql filter in mkii was not written by me ...

(in mkiv we hav eno sql filter yet)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-08 Thread Berend de Boer
 Gerben == Gerben Wierda gerben.wie...@rna.nl writes:

Gerben verb-sql.tex seems not to work correctly. Is it broken or
Gerben am I doing something wrong?

What if you use lowercase?

-- 
Cheers,

Berend.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pretty print SQL broken? Or am I doing something wrong?

2009-06-08 Thread Gerben Wierda


On 8 Jun 2009, at 09:59, Berend de Boer wrote:


Gerben == Gerben Wierda gerben.wie...@rna.nl writes:


   Gerben verb-sql.tex seems not to work correctly. Is it broken or
   Gerben am I doing something wrong?

What if you use lowercase?


For 'SQL' I assume I should use 'sql'. When I do that, exactly the  
same happens.


Yours,

Gerben

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___