>>>>> "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
___________________________________________________________________________________

Reply via email to