Discussion:
substyles in qsciLexer
Jamie Macdougall
2013-12-03 16:23:37 UTC
Permalink
Hi,
I'm having trouble understanding how to apply styles to the substyles in
the HTML lexer.
The usual QsciLexer.setPaper, setColor, setFont work for some of the styles
listed in QsciLexerHTML docs, but not the substyles.
Any hints on how to get this to work for the substyles?

Thanks,

Jamie
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2013-12-03 21:43:29 UTC
Permalink
I'm having trouble understanding how to apply styles to the substyles in the HTML lexer.
Standard Scintilla does not implement substyles for the HTML lexer, only for the C++ lexer.
http://www.scintilla.org/ScintillaDoc.html#SCI_GETSUBSTYLEBASES
The usual QsciLexer.setPaper, setColor, setFont work for some of the styles listed in QsciLexerHTML docs, but not the substyles.
It appears that you are using QScintilla2 and it is using the term substyles in a different way.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Jamie Macdougall
2013-12-05 00:42:15 UTC
Permalink
Yeah it was just another PEBKAC... I assumed the styles enum was sequential
and was using an index in it. Doh!

Thanks!

Jamie
Post by Jamie Macdougall
Post by Jamie Macdougall
I'm having trouble understanding how to apply styles to the substyles in
the HTML lexer.
Standard Scintilla does not implement substyles for the HTML lexer,
only for the C++ lexer.
http://www.scintilla.org/ScintillaDoc.html#SCI_GETSUBSTYLEBASES
Post by Jamie Macdougall
The usual QsciLexer.setPaper, setColor, setFont work for some of the
styles listed in QsciLexerHTML docs, but not the substyles.
It appears that you are using QScintilla2 and it is using the term
substyles in a different way.
Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...