Sublime Forum

Questions about highlighting

#1

Hi

I decided to try Sublime Text, and I have some questions.

  1. I added the functions autocompletition in Lua:

[code]{
“scope”: “source.lua”,

	"completions":
    
            { "trigger": "outputChatBox", "contents": "outputChatBox(${1:text}, ${2:element})" }
    ]

}[/code]

This work fine, but this function isn’t highlighted.


  1. Is it possible to highlight different “types” of functions with different colors?
    For example, in Notepad++:

Thank’s.

Sorry, my English is bad, I’m from Russia.

0 Likes

#2

Nobody knows?

0 Likes

#3

Autocompletions are there to help you type less, they don’t have anything to do with how the code appears.

How your code looks like depends on the color scheme (e.g., Monokai) and the syntax (e.g., Lua). I had a quick look and it seems that the default syntax for Lua does not color functions (?). When default packages are not so nice, there are usually third-party alternatives available. A quick googling brought up this --> github.com/rorydriscoll/LuaSublime

There may be other packages available.

Hope this helps,
Alex

P.S. I don’t know anything about Lua

0 Likes

#4

Okey, thank you, I’ll try this.

0 Likes