@language language injection¶
Note
Use @language
to inject syntax highlight to a piece of text
- Full format:
---@language LANGUAGE_ID
Example:
1 2 3 4
---@language JSON local jsonText = [[{ "name":"Emmy" }]]
Screenshot:
Note
Use @language
to inject syntax highlight to a piece of text
---@language LANGUAGE_ID
Example:
1 2 3 4 ---@language JSON local jsonText = [[{ "name":"Emmy" }]]
Screenshot: