Improve Lua Syntax Highlighting

The Syntax Highlighting for Lua is pretty awful for being Roblox’s coding language.

This is a pretty basic codeblock, using ```lua


print("lol")

for i, v in ipairs(game.Workspace:GetChildren()) do
    game.Workspace.Part:Destroy() --bye
    local test = Instance.new("Part")
    test.Parent = workspace
    task.wait(10)
    wait(1)
script.Parent.PreloadServiceAdminPanel.Main:TweenPosition(UDim2.new(1,0,1,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 15, true)
end

That’s an extremely basic codeblock, but almost none of it is syntax highlighted, besides the strings, numbers, and print and ipairs.

For Lua being Roblox’s main language, I think that it should be highlighted much more than it currently is.

5 Likes

Great suggestion. Though I’m not sure how many people actually need this. Like @ValiantWind once said, would you rather have this update, or Roblox staff work on resuming promotions to regular? Idk, just my thoughts. Also, what suggestions to be highlighted do you have?

4 Likes

I do see some use for it, I dont have studio open sometimes and when I go to help in #help-and-feedback:scripting-support or something, I can get confused because I really rely on autocomplete to do most stuff, and this would greatly help me.

Also, just a crazy theory, but staff have been talking about regular promos a bit more than usual lately, I think they’ve found something and wanna integrate it soon.
I’m probably wrong, but hey, that’s just a theory, a FORUM THEORY!!
sorry

1 Like

Makes sense

Pixlz a conspiracy theorist confirmed???111!!!1!

3 Likes

Well, this feature actually has use cases unlike Banners, but in the end its up for the admins to decide :slight_smile:

2 Likes

You’re right. Banners would be cool, but this actually has a use.

2 Likes

Thank’s for the feedback! What would you like the code blocks to look like instead? More like the DocSite?

4 Likes

Something like the DocsSite would be cool.

Also, mayyyyybe it could sync with our Studio Settings and get the colors from there? That’s pretty unlikely, and would require much more work, but it would be cool.

3 Likes

This is not Roblox’s fault. Devforum uses discourse which made the code blocks look garbage.

1 Like

I know that, I was just suggesting that Lua be better in specific.

Luau is also a problem, many luau features are not implemented in code blocks

1 Like