Enabled syntax highlighting extension

Discussions related to the forums itself. Call for moderators. Trash Posts area.
User avatar
Sanqui
Factorio Staff
Factorio Staff
Posts: 361
Joined: Mon May 07, 2018 7:22 pm
Contact:

Enabled syntax highlighting extension

Post by Sanqui »

I have enabled a phpBB extension that should provide syntax highlighting for code blocks.

Code: Select all

-- Example code
data:extend({
    {
        type = "string-setting",
        name = "my-mod-always-difficult",
        setting_type = "runtime-global",
        default_value = "yes",
        allowed_values = {"yes", "no"}
    },
    {
        type = "bool-setting",
        name = "my-mod-kill-player-on-entity-built",
        setting_type = "runtime-per-user",
        default_value = false
    }
})
It tries to automatically detect the language, and doesn't seem very good at recognizing Lua... so I'll see if I can nudge it the right way.
ovo
Amarula
Filter Inserter
Filter Inserter
Posts: 610
Joined: Fri Apr 27, 2018 1:29 pm
Contact:

Re: Enabled syntax highlighting plugin

Post by Amarula »

Thank you! Not perfect but a good step in the right direction. Much appreciated.
My own personal Factorio super-power - running out of power.
Post Reply

Return to “This Forum”