Advertisement
anuisud1

Untitled

Mar 26th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 9.38 KB | None | 0 0
  1.         private void scintilla1_TextChanged(object sender, EventArgs e)
  2.         {
  3.             int length = this.scintilla1.Lines.Count.ToString().Length;
  4.             if (length == this.maxLineNumberCharLength)
  5.             {
  6.                 return;
  7.             }
  8.             this.scintilla1.Margins[0].Width = this.scintilla.TextWidth(33, new string('9', length + 1)) + 2;
  9.             this.maxLineNumberCharLength = length;
  10.         }
  11.  
  12. string str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  13.                 string str2 = "0123456789";
  14.                 string str3 = "ŠšŒœŸÿÀàÁáÂâÃãÄäÅåÆæÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖØøÙùÚúÛûÜüÝýÞþßö";
  15.                 this.scintilla1.StyleResetDefault();
  16.                 this.scintilla1.Styles[32].Font = "Consolas";
  17.                 try
  18.                 {
  19.                     this.scintilla1.Styles[32].Font = "Hasklig";
  20.                 }
  21.                 catch (Exception ex)
  22.                 {
  23.                     string message = ex.Message;
  24.                 }
  25.                 this.scintilla1.StyleResetDefault();
  26.                 this.scintilla1.Styles[32].Font = "Consolas";
  27.                 this.scintilla1.Styles[32].Size = 10;
  28.                 this.scintilla1.Styles[32].ForeColor = Color.FromArgb(255, 255, 255);
  29.                 this.scintilla1.Styles[32].BackColor = Color.FromArgb(35, 35, 35);
  30.                 this.scintilla1.StyleClearAll();
  31.                 this.scintilla1.Styles[1].ForeColor = Color.Green;
  32.                 this.scintilla1.Styles[2].ForeColor = Color.Green;
  33.                 this.scintilla1.Styles[4].ForeColor = Color.LightSeaGreen;
  34.                 this.scintilla1.Styles[5].ForeColor = Color.FromArgb(86, 156, 214);
  35.                 this.scintilla1.Styles[13].ForeColor = Color.FromArgb(189, 99, 197);
  36.                 this.scintilla1.Styles[14].ForeColor = Color.PaleGreen;
  37.                 this.scintilla1.Styles[15].ForeColor = Color.DodgerBlue;
  38.                 this.scintilla1.Styles[6].ForeColor = Color.FromArgb(214, 157, 133);
  39.                 this.scintilla1.Styles[7].ForeColor = Color.FromArgb(214, 157, 133);
  40.                 this.scintilla1.Styles[8].ForeColor = Color.FromArgb(233, 213, 133);
  41.                 this.scintilla1.Styles[10].ForeColor = Color.LightGray;
  42.                 this.scintilla1.Styles[9].ForeColor = Color.Maroon;
  43.                 this.scintilla1.Lexer = Lexer.Lua;
  44.                 this.scintilla1.WordChars = str + str2 + str3;
  45.                 this.scintilla1.SetKeywords(0, "and break do else elseif end false for function if in local nil not or repeat return then true until while");
  46.                 this.scintilla1.SetKeywords(1, "warn CFrame CFrame.fromEulerAnglesXYZ Synapse Decompile Synapse Copy Synapse Write CFrame.Angles CFrame.fromAxisAngle CFrame.new gcinfo os os.difftime os.time tick UDim UDim.new Instance Instance.Lock Instance.Unlock Instance.new pairs NumberSequence NumberSequence.new assert tonumber getmetatable Color3 Color3.fromHSV Color3.toHSV Color3.fromRGB Color3.new load Stats _G UserSettings Ray Ray.new coroutine coroutine.resume coroutine.yield coroutine.status coroutine.wrap coroutine.create coroutine.running NumberRange NumberRange.new PhysicalProperties PhysicalProperties.new printidentity PluginManager loadstring NumberSequenceKeypoint NumberSequenceKeypoint.new Version Vector2 Vector2.new wait game. game.Players game.ReplicatedStorage Game delay spawn string string.sub string.upper string.len string.gfind string.rep string.find string.match string.char string.dump string.gmatch string.reverse string.byte string.format string.gsub string.lower CellId CellId.new Delay version stats typeof UDim2 UDim2.new table table.setn table.insert table.getn table.foreachi table.maxn table.foreach table.concat table.sort table.remove settings LoadLibrary require Vector3 Vector3.FromNormalId Vector3.FromAxis Vector3.new Vector3int16 Vector3int16.new setmetatable next ypcall ipairs Wait rawequal Region3int16 Region3int16.new collectgarbage game newproxy Spawn elapsedTime Region3 Region3.new time xpcall shared rawset tostring print Workspace Vector2int16 Vector2int16.new workspace unpack math math.log math.noise math.acos math.huge math.ldexp math.pi math.cos math.tanh math.pow math.deg math.tan math.cosh math.sinh math.random math.randomseed math.frexp math.ceil math.floor math.rad math.abs math.sqrt math.modf math.asin math.min math.max math.fmod math.log10 math.atan2 math.exp math.sin math.atan ColorSequenceKeypoint ColorSequenceKeypoint.new pcall getfenv ColorSequence ColorSequence.new type ElapsedTime select Faces Faces.new rawget debug debug.traceback debug.profileend debug.profilebegin Rect Rect.new BrickColor BrickColor.Blue BrickColor.White BrickColor.Yellow BrickColor.Red BrickColor.Gray BrickColor.palette BrickColor.New BrickColor.Black BrickColor.Green BrickColor.Random BrickColor.DarkGray BrickColor.random BrickColor.new setfenv dofile Axes Axes.new error loadfile ");
  47.                 this.scintilla1.SetKeywords(2, "getgenv getreg() endscript changereadonly setclipboard clipboard.set toclipboard setupvalue getupvalue proto get_nil_instances getrawmetatable get_thread_context getscriptfunc test getregistry getrenv _G setlp getlocal special console_print lproto readfile bctolua getInputects is_protosmasher_closure create_ebc getupvalues getlocals checkreadonly decompile is_protosmasher_func loadstring load_ebc dumpfunc shared copystr writefile bcloadstring loadfile ");
  48.                 this.scintilla1.SetKeywords(3, "Instance Instance.new pairs tostring tonumber loadstring print warn error game workspace and break do else elseif end for function if in local nil not or repeat return then until while false true goto type");
  49.                 this.scintilla1.SetKeywords(4, "debug debug.setupvalue debug.traceback debug.upvalueid debug.upvaluejoin debug.getuservalue debug.setlocal debug.setmetatabledebug.debug debug.gethook debug.getmetatable debug.getregistry debug.getupvalue debug.getinfo debug.getlocal debug.getupvalues debug.sethook Vector3.new Vector3.FromNormalId Vector3.FromAxis Vector3:Lerp Vector3:Dot Vector3:Cross Vector3:isClose Vector3 Color3 Color3.fromRGB Color3.new Color3.fromHSV Color3:lerp UDim2 UDim2.new UDim2:Lerp Vector2 Vector2.new Vector2:Dot Vector2:Lerp Vector2:Cross UDim UDim.new Enum string string.byte string.char string.dump string.find string.format string.gsub string.len string.lower string.rep string.sub string.upper table.concat table.insert table.remove table.sort math.abs math.acos math.asin math.atan math.atan2 math.ceil math.cos math.deg math.exp math.floor math.frexp math.ldexp math.log math.max math.min math.pi math.pow math.rad math.random math.randomseed math.sin math.sqrt math.tan string.gfind string.gmatch string.match string.reverse string.pack string.packsize string.unpack table.foreach table.foreachi table.getn table.setn table.maxn table.pack table.unpack table.move math.cosh math.fmod math.huge math.log10 math.modf math.mod math.sinh math.tanh math.maxinteger math.mininteger math.tointeger math.type math.ult bit32.arshift bit32.band bit32.bnot bit32.bor bit32.btest bit32.bxor bit32.extract bit32.replace bit32.lrotate bit32.lshift bit32.rrotate bit32.rshift utf8.char utf8.charpattern utf8.codes utf8.codepoint utf8.len utf8.offset os os.exit os.setlocale os.date os.getenv os.difftime os.remove os.time os.clock os.tmpname os.rename os.execute os.safeExecute io io.lines io.write io.close io.flush io.open io.output io.type io.read io.stderr io.stdin io.input io.stdout io.popen io.tmpfile");
  50.                 this.scintilla1.SetProperty("fold", "1");
  51.                 this.scintilla1.SetProperty("fold.compact", "1");
  52.                 this.scintilla1.Margins[2].Type = MarginType.BackColor;
  53.                 this.scintilla1.Margins[2].Mask = 4261412864u;
  54.                 this.scintilla1.Margins[2].Sensitive = true;
  55.                 this.scintilla1.Margins[2].Width = 20;
  56.                 this.scintilla1.Styles[33].ForeColor = Color.LightBlue;
  57.                 this.scintilla1.Markers[30].Symbol = MarkerSymbol.BoxPlus;
  58.                 this.scintilla1.Markers[31].Symbol = MarkerSymbol.BoxMinus;
  59.                 this.scintilla1.Markers[25].Symbol = MarkerSymbol.BoxPlusConnected;
  60.                 this.scintilla1.Markers[27].Symbol = MarkerSymbol.TCorner;
  61.                 this.scintilla1.Markers[26].Symbol = MarkerSymbol.BoxMinusConnected;
  62.                 this.scintilla1.Markers[29].Symbol = MarkerSymbol.VLine;
  63.                 this.scintilla1.Markers[28].Symbol = MarkerSymbol.LCorner;
  64.                 this.scintilla1.Styles[32].BackColor = Color.FromArgb(35, 35, 35);
  65.                 this.scintilla1.SetFoldMarginHighlightColor(true, Color.FromArgb(48, 48, 48));
  66.                 this.scintilla1.SetFoldMarginColor(true, Color.FromArgb(48, 48, 48));
  67.                 this.scintilla1.Styles[33].BackColor = Color.FromArgb(44, 44, 44);
  68.                 this.scintilla1.Styles[33].ForeColor = Color.FromArgb(255, 255, 255);
  69.                 this.scintilla1.SetSelectionForeColor(true, Color.FromArgb(255, 255, 255));
  70.                 this.scintilla1.SetSelectionBackColor(true, Color.FromArgb(70, 70, 70));
  71.                 this.scintilla1.Margins[1].Type = MarginType.Symbol;
  72.                 for (int i = 25; i <= 31; i++)
  73.                 {
  74.                     this.scintilla1.Markers[i].SetForeColor(Color.FromArgb(35, 35, 35));
  75.                     this.scintilla1.Markers[i].SetBackColor(Color.FromArgb(85, 85, 85));
  76.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement