3,674 questions
2
votes
2
answers
154
views
Getting syntax highlighting on string argument
I am currently creating a custom .NET router.
It is working as it should, but one thing that bothers me is that I don't get the same level of syntax highlight in rider as I get with other more ...
1
vote
1
answer
82
views
In vim, how to search the contents of :highlight (*NOT* hlsearch) [duplicate]
When I type :highlight, I get a buffer like:
:highlight
SpecialKey xxx term=bold ctermfg=188 guifg=#dcdfe4
EndOfBuffer xxx links to NonText
NonText xxx term=bold ctermfg=239 guifg=#...
0
votes
0
answers
42
views
Annotations highlighted in white in eclipse
i've been using Eclipse for a while now and never had such problems with it.
But recently some annotations are highlighted in white, which makes them hard to read.
This doesn't affect all annotations ...
3
votes
2
answers
112
views
How to hide the raw string literal indentation line in VS2022?
I would like to hide this line, looked in every indent and structure option but cannot manage to find which one makes this appear. I do not have extensions installed (monokai theme). I have disabled ...
-3
votes
1
answer
71
views
How to "unset" colors when customizing an overly-specific Sublime Text Color Scheme?
What is being customized
When creating a color scheme for Sublime Text, to find the scope that defines the color for a portion of code, we can press Cmd Opt P (Mac) or Shift Ctrl Alt P (Win), to bring ...
1
vote
1
answer
86
views
How to override PHP syntax coloring in VSCode Language
I tried both including source.php after my match rule and injection into the PHP language syntax.
Including the source shows PHP syntax coloring without my override, whereas injection shows my ...
-3
votes
4
answers
192
views
How can I implement syntax highlighting across the entire project files in VS Code?
In my case, while developing a Blazor web app, I found that some files have syntax highlighting and others do not. It primarily consists of HTML, C#, and JavaScript, which can occasionally be combined ...
3
votes
1
answer
167
views
Eclipse syntax hilighting for PHP files looks broken after updating to 2025-06 version
Just updated Eclipse IDE to the 2025-06 version, and now the syntax hilighting for PHP files seems all wrong.
Javascript and CSS files still display with correct syntax hilighting, but PHP files look ...
2
votes
0
answers
67
views
Vim syntax highlighting region is not correctly highlighted
I want to highlight special regions in a special extension .html.specialext, the regions are Lua code in some delimiter, here it's {{ and }}.
Detecting custom filetypes is trivial but here is my code ...
2
votes
1
answer
102
views
Capturing function parameters and optional type hints using regex
I'm trying to capture the optional type hints that come after parameter names for my own toy language so I can make them a different color, I'm using a tmLanguage.json file to create the synatx ...
-1
votes
1
answer
116
views
Regex in VS Code TextMate syntax highlighter grammar not working
I've created a toy scripting language and managed to configure basic textmate syntax highlighting in a VSCode extension for the very simple things like keywords, comments, and strings. But when I ...
2
votes
0
answers
55
views
Can you set file extension association for syntax highlighting in GitKraken?
GitKraken recognizes certain file extensions, and colors the code text appropriately. However, some lesser-used or outdated types got no attention. For example, I have a git repo with VB6 code, and a ....
0
votes
0
answers
95
views
Kate syntax-highlighting of comments starting with // and colorizing certain words within
I'm struggeling with code highlighting in Kate based on an xml-file. I'm wondering if it's possible to highlight comments (for example lines starting with //) and then mark individual keywords within ...
3
votes
0
answers
81
views
How to override the default syntax highlighting behavior of non-alphanumeric symbols?
I program in Forth, and Komodo's syntax highlighting has a behavior that I don't want. It seems that it treats symbols like @ or > as a separate class of tokens. But because symbols in Forth aren't ...
1
vote
1
answer
136
views
how to include syntax highlighting injections into nested languages?
At my workplace, we use a custom scripting language which i made a syntax grammar for to highlight the code structure in vscode.
In this language, we embed blocks of other language code. Which we can ...
1
vote
1
answer
82
views
Failing to write a summarizer
I'm trying to write a summarizer for my DSL in order to display error messages in the console.
I've been following the example with the Pico language and was able to successfully create a parser and ...
1
vote
2
answers
518
views
NeoVim Highlight .ts template as HTML / JSX
Update:
The closest I am able to get is by using an hmtl tagged template string. (This highlighting works even if html is undefined in the file.)
But this doesn't work for trying to do something like:
...
1
vote
1
answer
108
views
How to define syntax highlighting for both multi-line and single line strings inside of vim syntax file
I have a programming language that supports multi-line strings, the syntax is as follows (EBNF):
longstring ::= '"""' {'"'} newline chars newline '"""' {'"'}
...
0
votes
0
answers
88
views
Docusaurus Java Syntax Highlighting Not Working
I have a Docusaurus project where I am trying to add support for Java syntax highlighting however, despite following the Docusaurus documentation, I was unable to get it to work.
So far I have tried ...
0
votes
1
answer
76
views
R Syntax Highlighting for RMD files in VSCode Suddenly Stopped / Changed [closed]
I went to create a new .rmd file in vscode and realized suddenly my syntax highlighting changed/stopped working. I basically stripped all my settings, and did a clean install of vscode and my ...
2
votes
0
answers
51
views
How to enable Syntax Highlighting and Go to Definition for annotation blocks in .mo files
Tags:
I’m using the SimplyDanny's Modelica Language Support Extension in VSCode to get syntax highlighting for my .mo files. However, two important features are missing:
Inside annotation blocks – ...
2
votes
1
answer
57
views
Klipper Syntax Highlighter using Highlight.JS
I'm trying to create a syntax highlighter for the Klipper 3D printer firmware. The language consists of settings elements, comments and Jinja2 template elements. In the first place, I wanted to get a ...
0
votes
1
answer
75
views
How do I get VSCode Intellisense to work with my python class factory method?
I have a python class factory method that I use to create a commonly implemented derived class of django.tests.TestCase and django.tests.TransactionTestCase:
from typing import Type
from django.test ...
0
votes
1
answer
61
views
Unexpected vim region match
I'm relatively new to vim's syntax highlighting and its regex engine, which seems to be very differnt from others I've used (mainly perl, pcre, posix). This vim syntax highlighting problem has been ...
0
votes
0
answers
47
views
How do I define a vim syntax region with more that one possible end
I'm working on a Vim syntax file for a format that allows both single- or multi-line macro definitions. That is, they may look like
MACRO NAME definition...
or
MACRO NAME {
line1
line2
...
}
I'...
0
votes
1
answer
40
views
how to enable bilingual language syntax highlighting for vscode using textmate grammar
We are working on a vscode language extension which is bilingual language. Let’s say - primary language is A and Secondary Language is B.
and using text mate we are trying to enable syntax ...
0
votes
0
answers
27
views
Trying to syntax highlight HTML and Python in the same file. HTML syntax highlighting is not working
Hi I'm using the PackageDev package and Sublime Text 4189 to create a custom syntax file which will syntax highlight both Python and HTML. However, the HTML is not being highlighted and renders as ...
1
vote
0
answers
133
views
nvim treesitter highlight for "#if...#elif...#endif" preprocessors
I am using nvim + nvim-treesitter to parse and highlight my code. There is a problem on C source code #if...#elif...#endif preprocessor block.
Say I have the following code
// test.c
#include "...
0
votes
1
answer
37
views
What is this background editor highlight in JetBrains IDEs?
This keeps happening in JetBrains IDEs, and by the time it happens I've forgotten to pay attention to what I was doing at the time that caused it. I've used the eyedropper tool to get the hex and ...
0
votes
0
answers
23
views
How to disable anaconda linting in markdown's python code block
When writing python code blocks in a markdown file, the anaconda linting shows up for the whole document. Which results in a lot of white rectangles around markdown text.
Is anyone aware of a way to ...
0
votes
0
answers
31
views
Monaco Editor (Browser): @media keyword CSS syntax not highlighting correctly
The issue:
I use the Monaco Editor as a CSS editor in a WordPress Plugin. It all works fine, but I've noticed that the @media keyword is not highlighted.
What am I missing? A module? A simple config ...
1
vote
0
answers
93
views
How can I implement highlight.js in my react-quill?
I used code-block module in react quill but I want to add highlight to tag with inner code tag. I want to add class for different programming language, but Just after I am entering something in my ...
4
votes
1
answer
238
views
How can I get Visual Studio Code to give correct highlighting to a custom type in a C / C++ project?
I have a C project that has various typedef'd types such as:
typedef uint8_t UInt8;
typedef struct MyStruct_ {
...
} MyStruct;
However, unlike built-in types, they don't get correct syntax ...
0
votes
1
answer
36
views
Writing Textmate rules to match GABC/NABC sections in a .gabc file
I'm writing a VSCode extension to add syntax highlighting to .gabc files. I would like to match GABC and NABC sections within the code (so I can apply different patterns for each section), as follows:
...
0
votes
0
answers
66
views
Visual Studio Highlighting Variable Declarations
My apologies if this has already been asked and answered but I have searched for an answer and cannot find what I am looking for despite always feeling like I am close yto the solution.
I am using ...
1
vote
1
answer
197
views
Visual Studio colour setting for std::string and other user types
Using Visual Studio 2022 v17.12.1 with the "Dark" colour scheme (set at Tools > Options > Environment > General > Color Theme).
I've set up various colours in Tools > Options &...
0
votes
1
answer
126
views
Unexpected First Line Indentation
I'm building a documentation site generator using Nuxt.js and MDX. I've created a custom CodeBlock component to render code snippets within my MDX files. The component seems to be rendering correctly, ...
1
vote
1
answer
506
views
Red highlighted tabs in Cursor
I have this issue where I get this weird red highlighted tabs in Cursor. I alredy set "highlight active indentation" to false in "preferences > VS Code settings", which helped ...
1
vote
1
answer
370
views
SublimeText How do I make the custom syntax do some basic things?
I'm trying to create my own syntax definition for plaintext files.
I'm probably doing this in a very hacky way, but it seems to work ok. How do I find more "colours" like:
keyword.control.c
...
0
votes
1
answer
81
views
How to Disable Syntax Highlighting in LuaHelper While Keeping Debugger and Formatter Features?
I am working with Lua in VS Code and using two extensions:
LuaHelper by Tencent (provides debugging and formatting features).
MTA:SA Lua by Dominic Hock (provides syntax highlighting for MTA-specific ...
0
votes
0
answers
101
views
HTML syntax highlighting inside of template-strings in Sublime Text
In Sublime Text I would like my javascript files to have HTML syntax highlighting inside of template-strings. Until yesterday, I was using a custom syntax I found from this stack overflow which looked ...
1
vote
0
answers
78
views
The Sublime Text package "rainbow_csv" has the wrong color palette
I've installed the Sublime Text Package "rainbow_csv", but the colors are all wrong.
It's not "rainbow" at all - just muddy colors, with a grey that blends into the background like ...
1
vote
1
answer
768
views
Why treesitter syntax highlighting not working correctly with FastAPI Python decorators in Neovim?
I'm having an issue with syntax highlighting for FastAPI decorators. In VSCode everything works perfectly out of the box (after installed some Python extensions), but in Neovim the whole decorator ...
-1
votes
1
answer
529
views
Overriding theme with textMateRules in VS Code
How can I override a subscope of a theme in VS Code?
I want to have different colors for different markdown heading levels.
My current theme (Bluloco Light) has the following rule in its json:
{
...
1
vote
1
answer
99
views
Pip requirements syntax highlighting in GitHub markdown
According to GitHub syntax highlighting, keyword for pip requirements syntax highlighting can be found on languages.yml. According to the link, the keyword is Pip Requirements, but the following ...
0
votes
1
answer
190
views
Very slow Eclipse syntax highlighting
I'm contributing to a big Java project with around 30k source files. Last week, I switched from Eclipse 2023-09 to Eclipse 2024-09, and now it looks like some of the syntax coloring (e.g. for fields, ...
0
votes
1
answer
131
views
VSCode Fails String Literal Syntax Highlighting
I am working on a website with Visual Studio Code (v.1.95.2) but syntax highlighting seems to be messed up. This occurs when an HTML div element has an onclick attribute with JS code in the string. An ...
1
vote
1
answer
99
views
Sublime Text is messing with Ruby syntax highlight when using Ruby regexes
The ruby syntax highlighting is not working properly when using regexes.
Here is the ruby syntax highlighting issue:
It looks like multiple issues are happening here.
It seems that it interprets ...
2
votes
2
answers
148
views
Highlight JS code inside XML element or inside CDATA in VS code
I want to have JS syntax highlighting inside certain XML elements. E.g.
<Module Name="Main">
<![CDATA[
var obj = {};
obj.car = { Name: 'car', HP: 135};
obj.drive = ...
1
vote
1
answer
256
views
How to add ASCII color recognition for an ARM os?
I want to create my own operating system. In this OS, I have an edit mode for modifying file data (currently only in RAM). Here full code of this os:
#include "editor.h"
#include "uart....