This project is read-only.

ScintillaNet style list

Oct 18, 2012 at 8:35 AM


I am writing a software using ScintillaNET. My main aim is to get the same PHP styles as Notepad++ but I don't know how to. Setting files in Notepad++ is different from ScintillaNET. Does anybody have an idea how to do it completely the same? Or else is there complete a list of ScintillaNET Style types? For example: 

 <Style Name="CHARACTER" ForeColor="Black" BackColor="Red"/>

What other things can be used like "CHARACTER"? Is there a complete list?


Many thanks

Oct 19, 2012 at 5:14 AM

The link above is a map between PHP style names and their respective indexes. With that information it should be as easy as:

scintilla.Styles[0].ForeColor = Colors.Red;

to set the style properties. (substitute the style index appropriately)


Nov 1, 2012 at 3:48 PM

I understand the list but how will the ScintillaNET.xml look like?

mine is currently in pascal setting in language property and my ScintillaNET.xml looks like:


<?xml version="1.0" encoding="utf-8" ?>
	<Language Name="default">
			<Style Name="Default" FontName="Consolas"/>

	<Language Name="pascal">
		<Indentation TabWidth="2" UseTabs="false"/>
		<Lexer StreamCommentPrefix="{ " StreamCommentSuffix=" }">
			<Keywords List="0">var</Keywords>
			<Keywords List="1">string</Keywords>
			<Style Name="CHARACTER" ForeColor="Black" BackColor="Red"/>



I am confused. Will I use this in the c# code or ScintillaNet.xml?


Many thanks and sorry for too much asking

Nov 6, 2012 at 9:35 AM

I had a look at

and according to the written information there, ConfigurationManager.Language property should accept phpscript. I tried it but none of the syntax is highlighted. Am I missing anything??


Nov 8, 2012 at 12:48 AM

Try setting the ConfigurationManager.Language property to "html". It has support for embedded PHP blocks and may get you what you're looking for.


Nov 16, 2012 at 7:43 AM

Thanks for your reply. Now I get how it works. I set language property to html, created an XML file and specify only the ones need to be changed. The rest of styles come from html defaults. It works like charm. Thank you for all your help.