HarryH
StringRegon
implements from Region
. This is the prototype of these 2 functions.
SyntaxRegion CreateRegion(int state, string strBegin, string strEnd, bool bCase, bool bToRight=false );
SyntaxRegion CreateStringRegion(int state, string strChar, string strEscape, bool mline, string strContinueChar='\' );
Example:
Create a region to match single commented line in C/C++:
Set regionLine=cpp.CreateRegion( COLOR_COMMENT1, "+//+", "$", True )
+...+
means that: Don't use regex to match, just a normal string match (Faster, default is regex match).
Create a string match:
Set regionString=cpp.CreateStringRegion( COLOR_STRING1, """", "\", False )
Link: http://www.everedit.net/doc