Advertisement
GreenMs02

Untitled

Mar 3rd, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.41 KB | None | 0 0
  1. string str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  2.                 string str2 = "0123456789";
  3.                 string str3 = "ŠšŒœŸÿÀàÁáÂâÃãÄäÅåÆæÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖØøÙùÚúÛûÜüÝýÞþßö";
  4.                 scintilla.StyleResetDefault();
  5.                 scintilla.Styles[32].Font = "Consolas";
  6.                 scintilla.Styles[32].Size = 10;
  7.                 scintilla.StyleClearAll();
  8.                 scintilla.Styles[0].ForeColor = Color.Silver;
  9.                 scintilla.Styles[1].ForeColor = Color.Green;
  10.                 scintilla.Styles[2].ForeColor = Color.Green;
  11.                 scintilla.Styles[4].ForeColor = Color.LightSeaGreen;
  12.                 scintilla.Styles[5].ForeColor = Color.DarkBlue;
  13.                 scintilla.Styles[13].ForeColor = Color.DarkBlue;
  14.                 scintilla.Styles[14].ForeColor = Color.DarkSlateBlue;
  15.                 scintilla.Styles[15].ForeColor = Color.DarkSlateBlue;
  16.                 scintilla.Styles[6].ForeColor = Color.Purple;
  17.                 scintilla.Styles[7].ForeColor = Color.Purple;
  18.                 scintilla.Styles[8].ForeColor = Color.Purple;
  19.                 scintilla.Styles[12].BackColor = Color.Pink;
  20.                 scintilla.Styles[10].ForeColor = Color.Gray;
  21.                 scintilla.Styles[9].ForeColor = Color.Maroon;
  22.                 scintilla.Lexer = Lexer.Lua;
  23.                 scintilla.WordChars = str + str2 + str3;
  24.                 scintilla.SetKeywords(0, "and break do else elseif end for function if in local nil not or repeat return then until while false true goto");
  25.                 scintilla.SetKeywords(1, "assert collectgarbage dofile error _G getmetatable ipairs loadfile next pairs pcall print rawequal rawget rawset setmetatable tonumber tostring type _VERSION xpcall string table math coroutine io os debug getfenv gcinfo load loadlib loadstring require select setfenv unpack _LOADED LUA_PATH _REQUIREDNAME package rawlen package bit32 utf8 _ENV");
  26.                 scintilla.SetKeywords(2, "CFrame.new Vector3.new Vector2.new Color3.new Color3.fromRGB BrickColor.new 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");
  27.                 scintilla.SetKeywords(3, "coroutine.create coroutine.resume coroutine.status coroutine.wrap coroutine.yield io.close io.flush io.input io.lines io.open io.output io.read io.tmpfile io.type io.write io.stdin io.stdout io.stderr os.clock os.date os.difftime os.execute os.exit os.getenv os.remove os.rename os.setlocale os.time os.tmpname coroutine.isyieldable coroutine.running io.popen module package.loaders package.seeall package.config package.searchers package.searchpath require package.cpath package.loaded package.loadlib package.path package.preload");
  28.                 scintilla.SetProperty("fold", "1");
  29.                 scintilla.SetProperty("fold.compact", "1");
  30.                 scintilla.Margins[2].Type = MarginType.Symbol;
  31.                 scintilla.Margins[2].Mask = 4261412864u;
  32.                 scintilla.Margins[2].Sensitive = true;
  33.                 scintilla.Margins[2].Width = 20;
  34.                 for (int i = 25; i <= 31; i++)
  35.                 {
  36.                     scintilla.Markers[i].SetForeColor(SystemColors.ControlLightLight);
  37.                     scintilla.Markers[i].SetBackColor(SystemColors.ControlDark);
  38.                 }
  39.                 scintilla.Markers[30].Symbol = MarkerSymbol.BoxPlus;
  40.                 scintilla.Markers[31].Symbol = MarkerSymbol.BoxMinus;
  41.                 scintilla.Markers[25].Symbol = MarkerSymbol.BoxPlusConnected;
  42.                 scintilla.Markers[27].Symbol = MarkerSymbol.TCorner;
  43.                 scintilla.Markers[26].Symbol = MarkerSymbol.BoxMinusConnected;
  44.                 scintilla.Markers[29].Symbol = MarkerSymbol.VLine;
  45.                 scintilla.Markers[28].Symbol = MarkerSymbol.LCorner;
  46.                 scintilla.AutomaticFold = (AutomaticFold.Show | AutomaticFold.Click | AutomaticFold.Change);
  47.                 scintilla.Margins[0].Width = scintilla.TextWidth(33, new string('9', scintilla.Lines.Count.ToString().Length + 2)) - 10;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement