![]() The mechanism is simple enough: I wrote a small Perl program which parsed all the properties files and extracted all the distinct color values. To resolve this, I'm currently working on creating a set of lang.properties files that use the Solarized themes (both light and dark). I currently have a dark desktop in Mint where xed, the terminal emulator, vim, and etcetera do an acceptable job of showing the dark theme. No wish to necro-post, but I found this post -> A dark theme for SciTE but it seems as if things were ended at a single change for AutoIt where I was hoping for a comprehensive dark theme. I went looking around for dark themes for SciTE and didn't have much luck. TabReplace_FileInSciTE(4) - If required: Change the TAB size here TabReplace_FileInSciTE = function(_tabsize) Replaces all TAB in the file currently open in SciTE _line = _line:gsub('\t', function() idx = idx 1 return tTab end) PosTab = _line:find('\t', posTab 1) - find next TAB SRep = s:rep(iLen) - create replacement string SumLen = sumLen iLen -1 - total length of the replacements ILen = (_tabsize - ((posTab sumLen -1) % _tabsize)) calculation replacement string, taking into account characters to be inserted Local tTab, s, sRep, iLen, sumLen =, ' ', '', 0, 0 ![]() _tabsize = _tabsize or 4 - default TAB width If posTab = nil then return _line, 0 end - no TAB included If _line = '' then return _line, 0 end - only a empty string If _line:find('^ $') then return _line, 0 end - only a line break TabReplace_Line = function(_line, _tabsize) Out.: The line, with TAB replaced if necessary, and the number of replacements. : _tabsize TAB size in number of characters. In.: _line A line of text whose TAB are to be replaced by spaces.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |