Skip to main content

Questions tagged [syntax-highlighting]

Syntax highlighting is a feature of some text editors that display text (especially source code) in different colors and fonts according to the category of terms.

syntax-highlighting
0 votes
1 answer
34 views

How to implement text highlighting in a console text editor C#

I create an application similar to vim, a small console text editor. And I have a problem with the implementation of text highlighting. I know that there are two ways to write this, either using ...
Rostislav Kiv's user avatar
0 votes
0 answers
21 views

VS code not highlighting the debugger line using AEM

I am using VS code Version: 1.90.2 When I am hitting the page on AEM the VS code debug gets hit, but does not highlight the line ,I need to manual go to the call stack and click the thread which will ...
user3732294's user avatar
0 votes
0 answers
24 views

Is there a visual studio plugin to highlight or color code only specific XML attributes?

I'm looking for a VS plugin to highlight or color code only specifically configured XML attributes (or potentially other nodes). Does anybody know of anything like this? My use case is a domain ...
Daniel's user avatar
  • 1,427
1 vote
0 answers
38 views

Why can KDevelop syntax-highlighting show codes without suffix?

I'm using KDevelop-5.10 that comes with KDE Plasma-5.27. I found that KDevelop can show codes syntax highlighting, even through without suffix(*.hpp, *.h), as long as the codes are system headers. e.g:...
Leon's user avatar
  • 1,997
1 vote
2 answers
103 views

VS Code syntax highlighting for disabled C++ code

I'm trying to build a color theme for VS Code, specifically for C/C++. Works fine, but I cannot write a textmate rule for disabled code. When I used Qt Creator, it had a specific style for disabled ...
postcoital.solitaire's user avatar
-1 votes
0 answers
43 views

VS Code textmate rules

I'm making a custom syntax highlighting theme for my VS Code. I've chosen to do it the simplest way, in the settings.json. I know it's not the best way to do this, but it's more than enough for my ...
postcoital.solitaire's user avatar
0 votes
1 answer
23 views

VSC color syntax within PHP HEREDOC HTML strings

Some background: I was going to ask some Q about issues I have been having with syntax coloring while editing HTML strings that are embedded as HEREDOC strings in PHP code, and found this https://...
epeleg's user avatar
  • 10.7k
0 votes
1 answer
65 views

Why does VS Code sometimes colorise python print() as a magic method?

I didn't like VS Codes existing colour scheme for syntax highlighting in python, so I added rules using the textmate scopes. For functions, I used "entity.name.function.python". However, ...
Michael Savage's user avatar
0 votes
0 answers
38 views

NetBeans: Syntax-Highlighting JavaScript embedded in XML

I'm using Apache NetBeans 22 (Windows, all settings default). I'd like to syntax highlight JavaScript code that is embedded in XML. The file extension is .xml. The JS-Code is embedded inside <js>...
martin.lindenlauf's user avatar
0 votes
0 answers
68 views

Pygments newlines and white-space causing lexing errors

( This question needs to be reworked as all the problems except those involving conditional instructions have been solved. As the question is now, it's a mess ) First, a big N.B. : I am not a Python ...
jdb2's user avatar
  • 101
-1 votes
1 answer
78 views

How to *disable* copy button in README.md code blocks on GitHub?

On a README.md that i'm currently authoring the copy button really gets in the way in the Editor Preview, often hiding parts of the code: And once committed, the copy button takes up extra space: ...
Philzen's user avatar
  • 4,411
1 vote
1 answer
41 views

Can I modify VSCode syntax highlighting so that a python parameter variable's color is different from function call keyword parameter names?

I was able to modify both the color of parameter variables and function call keyword parameter names at the same time, but I cannot seem to modify them separately. For example the following: { &...
user1537366's user avatar
  • 1,186
2 votes
1 answer
243 views

Visual Studio 2022 doesn't recognise and color syntax

Recently I've got new corporate laptop and since then my Visual Studio Professional 2022 fails at recognising and coloring some code syntax. For example classes, methods etc. in text editor are simply ...
Michal Nies.'s user avatar
0 votes
0 answers
29 views

Visual Studio Code Not Recognizing Flutter Project: No Syntax Highlighting, No Run and Debug Buttons

Image I'm experiencing issues with my Flutter project in Visual Studio Code. The code editor is not providing syntax highlighting, and all the code appears in plain white. Additionally, the typical ...
Faris A's user avatar
0 votes
2 answers
52 views

Is it possible to Highlight a JavaScript Script inside of a JSP file in Eclipse?

i work mostly with JS , JSP and JAVA files , I have tried several different solutions , but it does not seem to be possible to highlight whatever is inside of <script type="text/javascript&...
Francisco Morais's user avatar

15 30 50 per page
1
2 3 4 5
243