C# Class _3PA.MainFeatures.Style

This class handles the Styles of scintilla
Afficher le fichier Open project: jcaillon/3P

Méthodes publiques

Méthode 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

Méthode 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 méthode

Called when the list of themes is imported
public static ImportList ( ) : void
Résultat void

InstallUdl() public static méthode

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
Résultat bool

IsCarretInNormalContext() public static méthode

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

IsNormalContext() public static méthode

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

SetFontStyle() public static méthode

public static SetFontStyle ( byte styleNumber, StyleThemeItem styleItem ) : void
styleNumber byte
styleItem StyleThemeItem
Résultat void

SetSyntaxStyles() public static méthode

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
Résultat void