Sublime Forum

Support for run-time syntax highlights, non-Python plugins

#1

Three questions:

  • Is there a way (now or in the future) to do syntax highlighting at run-time.
    What I mean is something like add_region, so you can do things like parse the
    contents of the buffer and apply a syntax definition to a part of it.
    The closest solution I can think of is e.g. defining the syntax for strings and then
    including a definition for e.g. SQL inside it, but AFAIK that can only be done statically.

  • Is there a way (now or in the future) to send things like snippets and syntax definitions
    directly to Sublime Text at run-time i.e. passing a string instead of writing to files.
    One immediate use-case is in the absence of run-time syntax definitions, I could generate new
    syntax definitions achieve more or less the same thing.

  • Is there any option for non-python plugins. I’d like to essentially speak to Sublime Text directly.
    Currently I can create a Python layer that talks to an external process, but it’d be great if I could
    bypass that entirely. IIUC, the Python plugins communicate via IPC/RPC, but the details aren’t
    documented and I’d hate to go down the road of figuring out how that works and then have it
    break in a future update to Sublime Text

0 Likes