@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:

../_images/language_injector.png
Fork me on GitHub