From: Berend de Boer <berend@pobox.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Pretty print SQL broken? Or am I doing something wrong?
Date: Wed, 24 Jun 2009 11:18:32 +0200 [thread overview]
Message-ID: <873a9q6lcn.fsf@dullio.nederware.nl> (raw)
In-Reply-To: <80C7B6AC-8014-466D-A197-17CBABD85248@rna.nl> (Gerben Wierda's message of "Tue\, 16 Jun 2009 00\:38\:09 +0200")
>>>>> "Gerben" == Gerben Wierda <Gerben.Wierda@rna.nl> writes:
>>>>>> "Gerben" == Gerben Wierda <Gerben.Wierda@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
___________________________________________________________________________________
prev parent reply other threads:[~2009-06-24 9:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-07 6:38 Gerben Wierda
2009-06-08 7:59 ` Berend de Boer
2009-06-08 22:12 ` Gerben Wierda
2009-06-11 12:06 ` Gerben Wierda
2009-06-11 13:05 ` Hans Hagen
2009-06-15 22:25 ` Gerben Wierda
2009-06-11 12:22 ` Berend de Boer
2009-06-15 22:27 ` Gerben Wierda
2009-06-15 22:38 ` Gerben Wierda
2009-06-24 9:18 ` Berend de Boer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873a9q6lcn.fsf@dullio.nederware.nl \
--to=berend@pobox.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).