Advertisement
FilterYT

Untitled

Jun 18th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.49 KB | None | 0 0
  1. #region scintilla
  2. var alphaChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  3. var numericChars = "0123456789";
  4. var accentedChars = "ŠšŒœŸÿÀàÁáÂâÃãÄäÅåÆæÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖØøÙùÚúÛûÜüÝýÞþßö";
  5. scintilla1.StyleResetDefault();
  6. scintilla1.Styles[Style.Default].BackColor = Color.FromArgb(37, 37, 37);
  7. scintilla1.Styles[Style.Default].ForeColor = Color.FromArgb(204, 204, 204);
  8. scintilla1.StyleClearAll();
  9. scintilla1.Styles[Style.Default].Font = "Courier New";
  10. scintilla1.Styles[Style.Default].Size = 10;
  11. scintilla1.SetFoldMarginColor(true, Color.FromArgb(48, 48, 48));
  12. scintilla1.SetFoldMarginHighlightColor(true, Color.FromArgb(48, 48, 48));
  13. scintilla1.Margins[1].Width = 0;
  14. scintilla1.Margins[2].Width = 16;
  15. scintilla1.Margins[2].Mask = Marker.MaskFolders;
  16. scintilla1.Margins[1].Width = 16;
  17. scintilla1.Margins[1].Type = MarginType.Color;
  18. scintilla1.Margins[1].BackColor = Color.FromArgb(44, 44, 44);
  19. scintilla1.Styles[Style.Default].ForeColor = Color.FromArgb(204, 204, 204);
  20. scintilla1.StyleClearAll();
  21. scintilla1.SetSelectionBackColor(true, Color.FromArgb(50, 50, 50));
  22. scintilla1.Styles[Style.Lua.Comment].ForeColor = Color.FromArgb(102, 102, 102);
  23. scintilla1.Styles[Style.Lua.Comment].ForeColor = Color.FromArgb(102, 102, 102);
  24. scintilla1.Styles[Style.Lua.CommentLine].ForeColor = Color.FromArgb(102, 102, 102);
  25. scintilla1.Styles[Style.Lua.Number].ForeColor = Color.FromArgb(255, 198, 0);
  26. scintilla1.Styles[Style.Lua.Word].ForeColor = Color.FromArgb(248, 109, 124);
  27. scintilla1.Styles[Style.Lua.Word2].ForeColor = Color.DarkBlue;
  28. scintilla1.Styles[Style.Lua.Word3].ForeColor = Color.FromArgb(132, 214, 247);
  29. scintilla1.Styles[Style.Lua.Word3].Bold = true;
  30. scintilla1.Styles[Style.Lua.Word4].ForeColor = Color.DarkSlateBlue;
  31. scintilla1.Styles[Style.Lua.String].ForeColor = Color.FromArgb(173, 241, 149);
  32. scintilla1.Styles[Style.Lua.Character].ForeColor = Color.FromArgb(173, 241, 149);
  33. scintilla1.Styles[Style.Lua.LiteralString].ForeColor = Color.Purple;
  34. scintilla1.Styles[Style.Lua.StringEol].BackColor = Color.FromArgb(37, 37, 37);
  35. scintilla1.Styles[Style.Lua.Operator].ForeColor = Color.FromArgb(204, 204, 204);
  36. scintilla1.Styles[Style.Lua.Preprocessor].ForeColor = Color.Maroon;
  37. scintilla1.Styles[Style.Lua.Word].Bold = true;
  38. scintilla1.Lexer = Lexer.Lua;
  39. scintilla1.WordChars = alphaChars + numericChars + accentedChars;
  40. scintilla1.SetKeywords(0, "debug.getupvalues debug.getregistry debug.setupvalue debug.setupvalues info and getsenv getmenv break do else elseif end for function getrawmetatable if in local nil not or repeat return then until while false true goto assert collectgarbage dofile _G getmetatable ipairs loadfile next pairs ypcall pcall rawequal rawget rawset setmetatable tonumber tostring type _VERSION xpcall string math coroutine io os debug getfenv gcinfo load loadlib loadstring require select setfenv unpack _LOADED LUA_PATH _REQUIREDNAME package rawlen package bit32 utf8 _ENV string.byte string.char string.dump string.find string.format string.gsub string.len string.lower string.rep string.sub string.upper 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 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 Color3.new UDim2.new UDim2 assert collectgarbage getfenv getmetatable ipairs loadfile loadstring newproxy next pairs pcall rawequal rawget rawset select select setfenv setmetatable tonumber tostring type unpack xpcall pairs game Instance.new Instance and break do else elseif end for function if in local nil not or repeat return then until while" + " false true" + " goto");
  41. scintilla1.SetKeywords(1, "assert collectgarbage dofile _G getmetatable ipairs loadfile next pairs pcall rawequal rawget rawset setmetatable tonumber tostring type _VERSION xpcall string math coroutine io os debug" + " getfenv gcinfo load loadlib loadstring require select setfenv unpack _LOADED LUA_PATH _REQUIREDNAME package rawlen package bit32 utf8 _ENV");
  42. scintilla1.SetKeywords(2, "string.byte string.char print CFrame CFrame.new Vector3.new table table.remove table.insert error 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");
  43. scintilla1.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");
  44. scintilla1.SetProperty("fold", "1");
  45. scintilla1.SetProperty("fold.compact", "1");
  46. scintilla1.Margins[2].Type = MarginType.Symbol;
  47. scintilla1.Margins[2].Mask = Marker.MaskFolders;
  48. scintilla1.Margins[2].Sensitive = true;
  49. scintilla1.Margins[2].Width = 20;
  50. for (int i = 25; i <= 31; i++)
  51. {
  52. scintilla1.Markers[i].SetForeColor(SystemColors.ControlLightLight);
  53. scintilla1.Markers[i].SetBackColor(SystemColors.ControlDark);
  54. }
  55. scintilla1.Markers[Marker.Folder].Symbol = MarkerSymbol.BoxPlus;
  56. scintilla1.Markers[Marker.FolderOpen].Symbol = MarkerSymbol.BoxMinus;
  57. scintilla1.Markers[Marker.FolderEnd].Symbol = MarkerSymbol.BoxPlusConnected;
  58. scintilla1.Markers[Marker.FolderMidTail].Symbol = MarkerSymbol.TCorner;
  59. scintilla1.Markers[Marker.FolderOpenMid].Symbol = MarkerSymbol.BoxMinusConnected;
  60. scintilla1.Markers[Marker.FolderSub].Symbol = MarkerSymbol.VLine;
  61. scintilla1.Markers[Marker.FolderTail].Symbol = MarkerSymbol.LCorner;
  62. scintilla1.AutomaticFold = (AutomaticFold.Show | AutomaticFold.Click | AutomaticFold.Change);
  63. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement