C# Class _3PA.MainFeatures.Style

This class handles the Styles of scintilla
显示文件 Open project: jcaillon/3P

Public Methods

Method Description
ImportList ( ) : void

Called when the list of themes is imported

InstallUdl ( bool onlyCheckInstall = false ) : bool

check if the User Defined Language for "OpenEdgeABL" exists in the userDefineLang.xml file, if it does it updates it, if it doesn't exists it creates it and asks the user to restart Notepad++ Can also only check and not install it by setting onlyCheckInstall to true

IsCarretInNormalContext ( int curPos ) : bool

Is the caret not in : an include, a string, a comment

IsNormalContext ( UdlStyles context ) : bool

Is the caret not in : a string, a comment

SetFontStyle ( byte styleNumber, StyleThemeItem styleItem ) : void
SetSyntaxStyles ( ) : void

Call this method to set the back/fore color and font type of each type used in 3P according to the styles defined in the SyntaxHighlighting file

Private Methods

Method Description
SetErrorStyles ( byte errorLevel, Color bgColor, Color fgColor ) : void

Sets a style for an Error annotation (reduced font + segoe ui) and for markers

Method Details

ImportList() public static method

Called when the list of themes is imported
public static ImportList ( ) : void
return void

InstallUdl() public static method

check if the User Defined Language for "OpenEdgeABL" exists in the userDefineLang.xml file, if it does it updates it, if it doesn't exists it creates it and asks the user to restart Notepad++ Can also only check and not install it by setting onlyCheckInstall to true
public static InstallUdl ( bool onlyCheckInstall = false ) : bool
onlyCheckInstall bool
return bool

IsCarretInNormalContext() public static method

Is the caret not in : an include, a string, a comment
public static IsCarretInNormalContext ( int curPos ) : bool
curPos int
return bool

IsNormalContext() public static method

Is the caret not in : a string, a comment
public static IsNormalContext ( UdlStyles context ) : bool
context UdlStyles
return bool

SetFontStyle() public static method

public static SetFontStyle ( byte styleNumber, StyleThemeItem styleItem ) : void
styleNumber byte
styleItem StyleThemeItem
return void

SetSyntaxStyles() public static method

Call this method to set the back/fore color and font type of each type used in 3P according to the styles defined in the SyntaxHighlighting file
public static SetSyntaxStyles ( ) : void
return void