Questions tagged [sublime-syntax]
12 questions
2
votes
1 answer
Regex: Syntax pop on two linefeeds
I'm currently writing a Sublime syntax mode (YAML, for v3) for a language which has an unusual comment format.
Documentation comments:
start with the symbol # as the first character in a LOC, and
end with two newlines
A simple example is this:
#…

turbo
- 1,233
- 14
- 36
1
vote
2 answers
Sublime Syntax Highlighting for Custom Python Logging Formatter
I want to highlight my python log outputs with sublime syntax definitions according to my custom python logging formatter. I try below syntax definition but it did not work. I can't see this highlight on my sublime highlight list. Below is my python…

Serhat
- 11
- 5
1
vote
2 answers
Regex, sublime-syntax file, matching all after a particular character except a specific group
I have a new file extension with a specific syntax, i've created a sublime-syntax file, and i'm trying to highlight certain characters in sublime text editor..
Assuming the following text :
Accept-Language: en-EN
n1.legend=0,1,meta,text,Legend,b1,30…

kapsula
- 75
- 9
1
vote
1 answer
Auto-Complete Closing HTML Tags in Extended Syntax
I am currently developing a syntax highlighting plugin for a template engine of my own. The content in the files are based off of the standard HTML syntax highlighting normally seen in Sublime Text.
Accomplishing this was by all means not a…

D. Ataro
- 1,711
- 17
- 38
1
vote
0 answers
sublime text 3 extend syntax highlighting
I'm using package control version of sublime-text plugin SublimeSKP,
which is being automatically updated. Recently I've added possibility of extending plugin compiler with users-defind functions. And now I'm interesting of making my new "plugins…

Timofey Kazantsev
- 71
- 4
0
votes
0 answers
How can I convert a .sublime-syntax definition to a .tmGrammar.json file to use in VSCode(Monaco)?
I need to convert a .sublime-syntax definition to a .tmGrammar.json definition to use in VSCode. If this is possible then I would like to use it in an embedded Monaco Editor. The definition I'm trying to convert is for the Charcoal ASCII sketching…

ty246
- 13
- 4
0
votes
1 answer
Regex Match Substring Based on Lookbehind
I am trying to write a sublime syntax for a config file used in one of my programs. Sublime syntax files use regex to perform syntax highlighting.
Here is an example:
Database=Something
#Database=SomethingElse
The regex should match the first equal…

liam shaw
- 11
0
votes
1 answer
SublimeText. Highlighting similar keywords - in different colors
How can i do this in SublimeText (see the image below)?
Is it possible do by using .sublime-syntax (%YAML1.2) or maybe another way?
Will be wonderful if anyone can provide me with some example. Thanks.

FMarkus
- 54
- 4
0
votes
2 answers
Sublime syntax: Parse two consecutive lines
With the .sublime-syntax format, how would you match the following:
This is a title
===============
This is valid Markdown and AsciiDoc, and maybe also reStructuredText.
How would you match this as a section heading? This is a title here, without…

eepp
- 7,255
- 1
- 38
- 56
0
votes
1 answer
Interactive q/kdb Build System to Sublime 3
I'm trying to enable the interactive kdb/q run mode in Sublime text. Standalone I'm able to run any q script inside ST but interactive mode is not working.
Below is my code.
Build file:
{
"cmd": ["X:/path/path/q", "-u", "$file"],
…

Vanditha
- 1
- 1
-2
votes
1 answer
Sublime Text 3 custom syntax for cottle: hard to start
I'm trying to make a "very simple" syntax highlight for "cottle" (which is a script language used in a text-to-speech app dedicated to Elite:Dangerous).
All i want (at least at the beginning) is to have three different colours: Comments,…

Parduz
- 662
- 5
- 22
-2
votes
1 answer
When do changes to Sublime Text 3 syntax files take effect?
I'm writing a syntax definition for Sublime Text 3, using the new YAML fornat and not the deprecated one. I'm not seeing changes to the text I'm trying to highlight, though. When are changes to my syntax definition file applied to the files it's…

JesseTG
- 2,025
- 1
- 24
- 48