Beispiel #1
0
        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
        }
Beispiel #2
0
		public Range(int start, int end, Scintilla scintilla) : base(scintilla)
		{
			if(start < end)
			{
				_start	= start;
				_end	= end;
			}
			else
			{
				_start	= end;
				_end	= start;
			}
		}
Beispiel #3
0
		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;
		}
Beispiel #4
0
		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");
		}
Beispiel #5
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 /// <param name="oScintillaControl">Scintilla control being printed</param>
 public PrintDocument(Scintilla oScintillaControl)
 {
     m_oScintillaControl = oScintillaControl;
     DefaultPageSettings = new DBDiff.Scintilla.PageSettings();
 }
Beispiel #6
0
 internal LongLines(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #7
0
 internal Indicator(int number, Scintilla scintilla)
     : base(scintilla)
 {
     _number	= number;
 }
Beispiel #8
0
 internal Document(Scintilla scintilla, IntPtr handle)
     : base(scintilla)
 {
     _handle = handle;
 }
Beispiel #9
0
 internal Printing(Scintilla scintilla)
     : base(scintilla)
 {
     _printDocument = new PrintDocument(scintilla);
 }
Beispiel #10
0
		internal WhiteSpace(Scintilla scintilla) : base(scintilla) { }
Beispiel #11
0
 internal Indentation(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #12
0
 internal Clipboard(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #13
0
 protected internal CaretInfo(Scintilla scintilla)
     : base(scintilla)
 {
     BlinkRate = SystemInformation.CaretBlinkTime;
     Width = SystemInformation.CaretWidth;
 }
Beispiel #14
0
		internal UndoRedo(Scintilla scintilla) : base(scintilla) { }
Beispiel #15
0
		protected internal Selection(Scintilla scintilla) : base(scintilla) 
		{			
			NativeScintilla.SetSelBack(true, Utilities.ColorToRgb(BackColor));
			NativeScintilla.SetSelFore(true, Utilities.ColorToRgb(ForeColor));
		}
Beispiel #16
0
 internal Scrolling(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #17
0
		internal HotspotStyle(Scintilla scintilla) : base(scintilla) 
		{
			ActiveForeColor = SystemColors.HotTrack;
			ActiveBackColor = SystemColors.Window;
		}
Beispiel #18
0
 protected internal Line(Scintilla scintilla, int number)
     : base(scintilla)
 {
     _number = number;
 }
Beispiel #19
0
 internal EndOfLine(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #20
0
 internal DocumentHandler(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #21
0
 internal GoTo(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #22
0
 internal IndicatorCollection(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #23
0
 protected internal LinesCollection(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #24
0
		internal Style(int index, Scintilla scintilla)
			: base(scintilla)
		{
			_index = index;
		}
Beispiel #25
0
 internal LineWrap(Scintilla scintilla)
     : base(scintilla)
 {
 }
Beispiel #26
0
 public ManagedRange(int start, int end, Scintilla scintilla)
     : base(start, end, scintilla)
 {
 }
		protected internal ScintillaHelperBase(Scintilla scintilla)
		{
			_scintilla	= scintilla;
			_nativeScintilla	= (INativeScintilla)scintilla;
		}