C# Класс _3PA.MainFeatures.Style

This class handles the Styles of scintilla
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SetErrorStyles ( byte errorLevel, Color bgColor, Color fgColor ) : void

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

Описание методов

ImportList() публичный статический Метод

Called when the list of themes is imported
public static ImportList ( ) : void
Результат void

InstallUdl() публичный статический Метод

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
Результат bool

IsCarretInNormalContext() публичный статический Метод

Is the caret not in : an include, a string, a comment
public static IsCarretInNormalContext ( int curPos ) : bool
curPos int
Результат bool

IsNormalContext() публичный статический Метод

Is the caret not in : a string, a comment
public static IsNormalContext ( UdlStyles context ) : bool
context UdlStyles
Результат bool

SetFontStyle() публичный статический Метод

public static SetFontStyle ( byte styleNumber, StyleThemeItem styleItem ) : void
styleNumber byte
styleItem StyleThemeItem
Результат void

SetSyntaxStyles() публичный статический Метод

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
Результат void