help-source-highlight
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-source-highlight] Translation map for style names


From: Dario Teixeira
Subject: [Help-source-highlight] Translation map for style names
Date: Mon, 15 Feb 2010 10:48:14 -0800 (PST)

Hi,

I have defined a simple outlang that produces S-expressions (see below).
However, I would like to produce shorter versions of the style identifiers,
so that "keyword" becomes "kwd", "symbol" becomes "sym", etc.  Is there any way
for the $style variable itself to be transformed via a translation map?  Or an
altogether different way of achieving this within the source-highlight library?

Thanks in advance!
Best regards,
Dario Teixeira

----------------------------------------------
onestyle "($style \"$text\")"

translations
"\"" "\\\""
end
----------------------------------------------








reply via email to

[Prev in Thread] Current Thread [Next in Thread]