Sublime Forum

Js-custom plugin question

#1

I use js-custom to do glsl syntax highlighting inside template strings, but after setting up sublime on a new system it’s not working. I’m wondering if it could be because I have the wrong syntax package installed and so the setting: "glsl": "scope:source.glsl" could be incorrect?

I think I’m missing something about the scope setting because it’s probably not a bug. I thought I’d ask here rather than bother the developer. The setting json I have is:

{
    "configurations": {
        "multi": {
            "custom_templates": {
                "comments": {
                    "glsl": "scope:source.glsl"
                }
            },
            "jsx": true
        }
    }
}

I’m using “OpenGL Shading Language (GLSL)” syntax.
Thanks for any advice!

0 Likes

#2

Actually maybe it is a new bug? I have a file with template string for webgl shaders and they are un-highlighted, but when I create a new one, that one on it’s own is highlighted.

0 Likes