internal KeywordCollection(Scintilla scintilla) : base(scintilla) { // Auugh, this plagued me for a while. Each of the lexers cna define their own "Name" // and also asign themsleves to a Scintilla Lexer Constant. Most of the time these // match the defined constant, but sometimes they don't. We'll always use the constant // name since it's easier to use, consistent and will always have valid characters. // However its still valid to access the lexers by this name (as SetLexerLanguage // uses this value) so we'll create a lookup. _lexerAliasMap = new Dictionary<string, Lexer>(StringComparer.OrdinalIgnoreCase); // I have no idea how Progress fits into this. It's defined with the PS lexer const // and a name of "progress" _lexerAliasMap.Add("PL/M", Lexer.Plm); _lexerAliasMap.Add("props", Lexer.Properties); _lexerAliasMap.Add("inno", Lexer.InnoSetup); _lexerAliasMap.Add("clarion", Lexer.Clw); _lexerAliasMap.Add("clarionnocase", Lexer.ClwNoCase ); //_lexerKeywordListMap = new Dictionary<string,string[]>(StringComparer.OrdinalIgnoreCase); //_lexerKeywordListMap.Add("xml", new string[] { "HTML elements and attributes", "JavaScript keywords", "VBScript keywords", "Python keywords", "PHP keywords", "SGML and DTD keywords" }); //_lexerKeywordListMap.Add("yaml", new string[] { "Keywords" }); // baan, kix, ave, scriptol, diff, props, makefile, errorlist, latex, null, lot, haskell // lexers don't have keyword list names }
public Range(int start, int end, Scintilla scintilla) : base(scintilla) { if(start < end) { _start = start; _end = end; } else { _start = end; _end = start; } }
internal StyleCollection(Scintilla scintilla) : base(scintilla) { Bits = 7; // Defaulting CallTip Settings to Platform defaults Style s = CallTip; s.ForeColor = SystemColors.InfoText; s.BackColor = SystemColors.Info; s.Font = SystemFonts.StatusFont; // Making Line Number's BackColor have a named system color // instead of just the value LineNumber.BackColor = SystemColors.Control; }
internal Lexing(Scintilla scintilla) : base(scintilla) { WhiteSpaceChars = DEFAULT_WHITECHARS; WordChars = DEFAULT_WORDCHARS; _keywords = new KeywordCollection(scintilla); // Language names are a superset lexer names. For instance the c and cs (c#) // langauges both use the cpp lexer (by default). Languages are kind of a // SCite concept, while Scintilla only cares about Lexers. However we don't // need to explicetly map a language to a lexer if they are the same name // like cpp. _lexerLanguageMap.Add("cs", "cpp"); _lexerLanguageMap.Add("html", "hypertext"); _lexerLanguageMap.Add("xml", "hypertext"); }
/// <summary> /// Default Constructor /// </summary> /// <param name="oScintillaControl">Scintilla control being printed</param> public PrintDocument(Scintilla oScintillaControl) { m_oScintillaControl = oScintillaControl; DefaultPageSettings = new DBDiff.Scintilla.PageSettings(); }
internal LongLines(Scintilla scintilla) : base(scintilla) { }
internal Indicator(int number, Scintilla scintilla) : base(scintilla) { _number = number; }
internal Document(Scintilla scintilla, IntPtr handle) : base(scintilla) { _handle = handle; }
internal Printing(Scintilla scintilla) : base(scintilla) { _printDocument = new PrintDocument(scintilla); }
internal WhiteSpace(Scintilla scintilla) : base(scintilla) { }
internal Indentation(Scintilla scintilla) : base(scintilla) { }
internal Clipboard(Scintilla scintilla) : base(scintilla) { }
protected internal CaretInfo(Scintilla scintilla) : base(scintilla) { BlinkRate = SystemInformation.CaretBlinkTime; Width = SystemInformation.CaretWidth; }
internal UndoRedo(Scintilla scintilla) : base(scintilla) { }
protected internal Selection(Scintilla scintilla) : base(scintilla) { NativeScintilla.SetSelBack(true, Utilities.ColorToRgb(BackColor)); NativeScintilla.SetSelFore(true, Utilities.ColorToRgb(ForeColor)); }
internal Scrolling(Scintilla scintilla) : base(scintilla) { }
internal HotspotStyle(Scintilla scintilla) : base(scintilla) { ActiveForeColor = SystemColors.HotTrack; ActiveBackColor = SystemColors.Window; }
protected internal Line(Scintilla scintilla, int number) : base(scintilla) { _number = number; }
internal EndOfLine(Scintilla scintilla) : base(scintilla) { }
internal DocumentHandler(Scintilla scintilla) : base(scintilla) { }
internal GoTo(Scintilla scintilla) : base(scintilla) { }
internal IndicatorCollection(Scintilla scintilla) : base(scintilla) { }
protected internal LinesCollection(Scintilla scintilla) : base(scintilla) { }
internal Style(int index, Scintilla scintilla) : base(scintilla) { _index = index; }
internal LineWrap(Scintilla scintilla) : base(scintilla) { }
public ManagedRange(int start, int end, Scintilla scintilla) : base(start, end, scintilla) { }
protected internal ScintillaHelperBase(Scintilla scintilla) { _scintilla = scintilla; _nativeScintilla = (INativeScintilla)scintilla; }