Its really annoying when variables such as these get affected by syntax highlighting when I’m not even indexing “math.max”, but just typing “max”.
Please make it so it highlights “x.x” instead of just “x”
Its really annoying when variables such as these get affected by syntax highlighting when I’m not even indexing “math.max”, but just typing “max”.
Please make it so it highlights “x.x” instead of just “x”
Also using the exact same color for special function names as keywords seems a bit weird and misleading to me. I like what Notepad++ did where they are a lighter shade of blue instead (or different color if you happened to customize it).
Always a nice piece of art when you have code like math.min(max,math.max(min,time))
What are the colors you use for this scheme? It looks quite nice.
or you can save yourself from the trouble and just put this in your plugins folder
local enabled = true
if not enabled then return end
local Colors = {
BackgroundColor = "F5F4EB";
CommentColor = "5B9992";
ErrorColor = "FF0000";
KeywordColor = "C8534B";
NumberColor = "63BAD9";
OperatorColor = "B6AA7A";
PreprocessorColor = "7F7F7F";
SelectionBackgroundColor = "646263";
SelectionColor = "DCD8C8";
StringColor = "D85BA6";
TextColor = "473A35";
}
function getHexColor(s)
return tonumber("0x"..string.sub(s, 1, 2)) / 255, tonumber("0x"..string.sub(s, 3, 4)) / 255, tonumber("0x"..string.sub(s, 5, 6)) / 255
end
for key, color in next, Colors do
Colors[key] = Color3.new(getHexColor(color))
end
local Settings = settings().Studio
Settings["Background Color"] = Colors.BackgroundColor
Settings["Comment Color"] = Colors.CommentColor
Settings["Error Color"] = Colors.ErrorColor
Settings["Keyword Color"] = Colors.KeywordColor
Settings["Number Color"] = Colors.NumberColor
Settings["Operator Color"] = Colors.OperatorColor
Settings["Preprocessor Color"] = Colors.PreprocessorColor
Settings["Selection Background Color"] = Colors.SelectionBackgroundColor
Settings["Selection Color"] = Colors.SelectionColor
Settings["String Color"] = Colors.StringColor
Settings["Text Color"] = Colors.TextColor
Settings["Tab Width"] = 4
Settings["Show Hover Over"] = false
Settings["Basic Objects Display Mode"] = 1
Settings["Animate Hover Over"] = false
Settings["Show Diagnostics Bar"] = true
Would anyone be upset if the $
processor syntax highlighting got removed? This is what it looks like for reference:
I don’t think it will be an issue in terms of development (No Lua code runs using preprocessors anymore, and ROBLOX doesn’t support it), but I’d like to make sure.
I wouldn’t.
Never knew what it did, it just made a fancy color along with a syntax error.
EDIT: Apparently they were removed in 4.0, making its last appearance in 3.2, in the medieval ages.
Working on this now.
I’ve picked a slightly lighter color of blue. Assuming we go ahead with this recoloring change, will you all still want a lighter blue?
What other syntax highlighting indicators may be missing?
Will it be another color option in the Script Editor Colors settings? If so, I don’t think anyone will have an issue with it. (They can change the color if they don’t like it.) Maybe call it “Library Call Color”.
It should be in the script editor colors.
My implementation also recolors Lua’s default functions. I’m not sure if this will make it to release. This does mean print
is now colored specially. However, this how it is in sublime text.
Would anyone be upset with this change?
Finally, it recolors for all libraries, using intellisense’s data. This is the new result.
Compare to the old:
Code sample with recoloring (That pink isn’t default!):
Not sure if you’re able to make these changes or not, but perhaps you could make the line numbers use the background + text color, as well as the white gap that has the arrows for function blocks?
This change is now live!
If you update your coloring, you can get this!
It is, of course, an option.
Let me know about any regressions.
As for my suggestion, should I make a feature request?
Yes please! Thank you!
Presumably this isn’t meant to highlight:
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.