public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Own syntax-highlighting not working properly
@ 2020-10-03 10:23 'Karl Weber' via pandoc-discuss
       [not found] ` <8723849e-be6b-4571-b8ca-2ae76865bc42o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: 'Karl Weber' via pandoc-discuss @ 2020-10-03 10:23 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1745 bytes --]

Hi,

I am trying to build my own syntax-highlighting but it is not working 
properly. I have two problems, which are related to new *itemData* elements.

(1) KDE-style XML syntax does not require a *defStyleNum* attribute in the  
*itemData* elements of the *itemDatas* group. It is also possible, to 
specify attributes like *bold="true"* *color="$AAAAAA"* directly in an 
*itemData* element.

This, however, is not working with pandoc, so I wonder, if I make a mistake 
or whether this is not supported?

(2) Link between *itemData* elements and styles in the themes file.

The *idemData* elements usually contain *defStyleNum* attributes of the 
form e.g. *defStyleNum="dsKeyword"* The themes file (at least for pygments) 
however contains styles for e.g. *"Keyword"*. 

So, *my assumption* is, these specifications are related as follows: for 
every *defStyleNum="dsXYZ"* attribute in an itemData element I may specify 
style properties for *"XYZ"* in the themes file.

However, this is not working with pandoc. So again: is my understanding 
correct and to I make a mistake, or is it not supported to add new 
style-"numbers" like i tried?

It would be great, if I could leave all styles in pygments unchanged and 
*add* my own styles in one of the two ways, I tried. Or is there another 
way that works?

Thanks in advance
Karl

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8723849e-be6b-4571-b8ca-2ae76865bc42o%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2454 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-04 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 10:23 Own syntax-highlighting not working properly 'Karl Weber' via pandoc-discuss
     [not found] ` <8723849e-be6b-4571-b8ca-2ae76865bc42o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-10-04 15:26   ` John MacFarlane
     [not found]     ` <m2r1qerp0l.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-10-04 18:58       ` 'Karl Weber' via pandoc-discuss

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).