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.
3,440
questions
1
vote
0
answers
7
views
Aptana studio 3.3.1 with PHP 8 syntax error
As I said I can't find where to get com.aptana.php.feature for syntax compatilility with PHP8
Can somebody help please ?
-1
votes
0
answers
8
views
Define module in python to highlight columns in yellow if column is greater than 0.01
i want to define a module in python and want to call it in my code but not able to call, i have two dataframe and merged the both dataframe, and created the new dataframe,i.e
Final_files = ...
0
votes
1
answer
24
views
understanding dataclass field usage
I am confused about how the usage of field() in dataclasses works.
I have this (senseless) example:
from dataclasses import dataclass, field
@dataclass
class Person:
name: str = field(init=False)
...
0
votes
0
answers
8
views
language for simple key-value file (mostly for syntax highlighting)
so i have some simple files that contain key-value pairs like this:
TITLE language for simple key-value file (mostly for syntax highlighting)
DESCRIPTION so i have some simple files that contain ...
0
votes
2
answers
35
views
Can I cascade vim syntax highlighting rules like in nano?
I have a custom file type, which contains lots of fields like
FieldName: FieldValue
I'm trying to create syntax highlighting for this filetype, in nano and vim, such that "Fieldname" ...
0
votes
0
answers
7
views
Any Pygments lexer for the Mustache templating language?
I'd like to list source code of Mustache templates in my paper, and I'm using the minted package for highlighting code in my LaTeX source. The minted package simply uses Pygments. But there isn't any ...
1
vote
1
answer
36
views
Check If Vim Syntax Region Exists and Remove It
Background:
Syntax highlighting for perl files is extremely slow at times for large files (1k+ lines).
I profiled using:
:syntime on
"*** Do some slow actions ***
:syntime report
There were ...
0
votes
1
answer
43
views
modify syntax highlighting for Tcl in Gnu Emacs
I've been using emacs (currently Gnu Emacs 26.3 under Ubuntu) for many years, but I still have to fold when I need to modify or configure emacs.
Can someone please help me with the following problem: ...
0
votes
0
answers
52
views
Syntax highlighting for shell/bash script in gitlab.com?
I've moved from github.com to gitlab.com.
But just noticed shell/bash codes are not shown with syntax highlighting.
I'm not sure "syntax highlighting" is the correct term or not.
I can see ...
0
votes
0
answers
8
views
Xcode syntax highlighting keywords incorrectly
For some reason Xcode identifies strings, methods, objects & more as plain text. This applies with all the themes Xcode has to provide me with. This is a C++ file.
0
votes
0
answers
20
views
How to get syntax highlighting of Vue components like <vue-component />?
Currently I am using prettier and Vetur but neither one will highlight components unless I code them as which is not the practice of the company I am working for. Anyone have any idea how to get ...
0
votes
0
answers
24
views
Android Studio DAO Syntax Highlighting, DB Inspector and Language Injection
Since my last build upgrade, the syntax highlighting in my DAOs is not working anymore.
My expectation (and experience) is, that there is syntax highlighting in the queries and once the database ...
0
votes
0
answers
15
views
IntelliSense stuck in updating
After the latest c/c++ extension update (v1.10.5) for vs code, I'm having problems with Intellisense highlighting my c code. It does not highlight syntax/give suggestions most of the time. Also there'...
0
votes
1
answer
23
views
VS Code Color Highlighting Tokenization for certain chars not working
I'm trying to create a syntax highlighting file for VS Code.
While doing this, I wanted to colorize the + sign, however, this won't work somehow.
I tried matching the standard operators like this:
&...
0
votes
0
answers
12
views
Where can I find the documentation for the default syntax highlighting schema in VSCode?
I want to understand what all the colors mean when looking at PowerShell code in Visual Studio Code. I'm having some trouble with matching curly braces and comparing files and I think understanding ...
0
votes
0
answers
28
views
FastColoredTextBox parse line
Using FastColoredTextBox for a syntax highlighter but I cannot see how to force it to parse the entire line, or part of a line
If the user types a line like
if (a == b) { // Test for equality
but then ...
0
votes
0
answers
15
views
nano highlighting fails in matching shell array brackets
The last two array expansions don't get proper highlighting:
This is the setting in sh.nanorc that defines it:
# More complicated variable names; handles braces and replacements and arrays.
color ...
0
votes
0
answers
36
views
How can I fix my RegEX expression so it doesn't match the whole line after?
I'm working on an VS Code extension for LOLCode. I've gotten most of my RegEx expressions to do what I want but when I tried to work with isolating variables in some instances it includes almost ...
1
vote
1
answer
41
views
VSCode JavaScript syntax highlighting
I've recently returned to using VSCode after a long break. It seems that after updating, the syntax highlighting colours have changed to this:
From this:
Does anybody know how to achieve the look in ...
0
votes
0
answers
13
views
Highlight codeblock using markdown-to-jsx
I'm using markdown-to-jsx npm package to display markdown within a ReactJS application and want to highlight codeblocks with PrismJS. So I created a custom component to override codeblocks:
import { ...
0
votes
0
answers
27
views
Get syntax highlighting for specific file in Emacs?
I have created the file ~/.bashrc__common, which I source from ~/.bashrc, and I would like this file to be syntax highlighted just like other shell scripts when I open it in Emacs. I have added the ...
1
vote
0
answers
21
views
Assigning different color pool to each bracket type in Visual Studio Code
Is it possible to assign a different color pool to each bracket type in Visual Studio Code?
There is a JSON parameter "independentColorPoolPerBracketType" that changes the bracket syntax ...
1
vote
0
answers
20
views
Custom highlighting for string literals in Jupyter
Is there prior art to either
(Simple?) Add a new cell type to Jupyter notebook and apply custom syntax highlighting to all string literals in cells of that type while otherwise treating these cells ...
0
votes
1
answer
23
views
HighlightJS not highlighting certain code fragments
I'm using HighlightJS to format code that's being stored in a model's TextField of my Django application.
Here is the template HTML:
<pre>
<code class="{{ compiler.highlight_js_alias }}...
0
votes
1
answer
57
views
Codemirror does not apply theme classes and use only <pre> tag
I need to display (read-only) few line of json code accordingly to user selection (drop-down).
So i come up with Codemirror (version 3.20) and in particular to this few lines of code :
var ...
0
votes
0
answers
14
views
Change regexp line length limits in Atom
I make a syntax highlighting for some special file format in Atom. It seems that regular expressions engine in Atom doesn't capture too long lines (longer than 1000 symbols). Is there some settings I ...
0
votes
0
answers
11
views
How to activate word highlighting across cells in VScode notebooks?
I am using Jupyter (.ipynb) notebooks in Visual Studio Code 1.67.0. When I double click on a word/region this highlights all occurrences of that word/region only in the same cell. The setting for this ...
0
votes
0
answers
41
views
CLion no syntax highlighting and hints for CMakeLists
My CMakeLists.txt is correctly loaded for the project, and the project can be executed correctly. However, when I try to write in CMakeLists.txt, there's no syntax highlighting, hints and reload hint ...
0
votes
1
answer
23
views
OpenCL syntax highlighting in CLion
Does anyone have a solution for syntax highlighting of OpenCL code for CLion?
I am placing the OpenCL source code in a file with the extension .cl and would like to have syntax highlighting for such ...
0
votes
1
answer
56
views
Syntax highlighting in egui Rust
I'm writing a text editor in Rust using egui. I am trying to implement syntax highlighting,
so I followed the example in the demo. It works there, so I thought it might be useful. But I am getting an ...
0
votes
1
answer
119
views
VS Code extension: setting custom semantic token colors
Is it possible to modify the styling of semantic token modifiers received from LSP
inside an extension without the need to create custom themes?
I am able to use editor....
0
votes
1
answer
81
views
converting vim syntax highlighting into vscode syntax highlighting
I've looked around - and could not find a way to automatically do this. so:
I have some syntax highlighting I built in vim I want to transfer over to vscode. and I'm getting stuck on at least 2 parts.
...
0
votes
0
answers
22
views
How to change color of QtCreator block highlighting?
https://doc.qt.io/qtcreator/creator-highlighting.html
is interesting but the color scheme on macOS don't feel perfect. How to change color of QtCreator block highlighting?
I mean the Options > Text ...
0
votes
0
answers
29
views
How to change c syntax check standard in vscode
vscode default c syntax checker seems that c standard used not high (maybe c99 or lower)
like the example following:
array ellipsis is available in c11 , actually it can compiled successfully if ...
0
votes
0
answers
38
views
How do I do the prismjs diff highlight with language in my markdown file
This (```js) for JavaScript language
This (```diff) works for diff.
But I don't know I to use both in my markdown file. I'm trying to achieve this in the docs https://prismjs.com/plugins/diff-...
0
votes
0
answers
17
views
Change Tree View text properties depending on file extension
I use Atom and I want to change the color of items in the Tree View (the list on the left) depending on file extensions. For instance, change the color parameter to green for all html files, to orange ...
0
votes
1
answer
31
views
Can I Append Custom Highlights to an Existing Syntax Without Forking It?
I'm looking to add a few custom syntax highlights to an existing one, but I don't want to maintain a copy of the base one I'm using in its entirety. Is there a way to extend an existing syntax (and ...
0
votes
0
answers
25
views
VSCODE: Syntax highlight with PHP-ish code in HTML, own highlighter
I want to highlight PHP-ish code in HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" ...
2
votes
1
answer
56
views
Why is the word file get highlighted in .py files in the Vim text editor?
The word "file" in python is not a keyword, but my Vim highlights it as if it were. Can someone suggest a fix and explain this strange behaviour? It keeps messing with me. It bothers me ...
1
vote
0
answers
58
views
VSCode syntax highlighting breaks when declaring a nullable variable in C#
I'm developing in Blazor and am running into an issue with nullable variables and VSCode. When trying to create razor component parameters and make them nullable, all lines below in VSCode stop ...
1
vote
1
answer
41
views
Highlight Duplicate Rows from 4 column with single row
I'm new for google sheet as well as excel but Please find the google sheet (i share it with editable) so you can edit also. So, my question is Ï want to highlight column A,B with Column D,E (for find ...
0
votes
0
answers
31
views
Intellij CE auto-completion and error highlighting don't work
I have installed Intellij 2022 CE and I faced a problem with Java mistake's highlighting.
Code auto-completing doesn't work too.
In top right corner I see title "analyzing".
I found ...
0
votes
0
answers
22
views
How can I edit the language syntax highlighting of a language in VSCode?
I have a .log file for my script, but sometimes instead of WARN of INFO or DEBUG, the script will have COMMAND lines, or ONLINE lines.
[04/13/2022, 21:37:39][ONLINE] -- Logged in as BotName
[04/13/...
0
votes
2
answers
108
views
Java Syntax Highlighting Issue for IntelliJ Ultimate
When I run the files in IntelliJ Idea Ultimate, I can getting improper syntax highlighting of only orange, green, and gray. Is there any way to get more colors for syntax highlighing for methods and ...
0
votes
1
answer
20
views
How to embed inline C++ syntax in another language definition?
I have a custom Perl syntax file for Sublime Text 3 and I would like to add an highlighting support for embedded C++ code.
The inline C++ code always starts with __CPP__ and ends with __END__ ...
-2
votes
2
answers
40
views
invalid syntax (Issue with ' and ")
Code:
grb.write(" payload = f'-----------------------------325414537030329320151394843687Content-Disposition: form-data; name='file'; filename='{__file__}'Content-Type: text/plain{...
0
votes
1
answer
45
views
Regular expression to match strings for syntax highlighter
I'm looking for a regular expression that matches strings for a syntax highlighter used in a code editor. I've found
(")(?:(?!\1|\\).|\\.)*\1
from here regex-grabbing-values-between-quotation-...
0
votes
1
answer
177
views
Syntax highlighting in Vscode for type hints
I am using the Dark++ theme but personalising a lot of colours.
Everything works fine but one small thing: only the basic types are properly highlighted.
For example this
"editor....
0
votes
1
answer
154
views
Visual Studio Code how to copy colored syntax from terminal
I am running Visual Studio Code on Linux Ubuntu (on virtual machine). The host machine is Windows 10.
Seems VSC for Linux Ubuntu offers some default syntax highlighting for terminal output (at least I ...
0
votes
1
answer
68
views
Poor performance with QSyntaxHighlighter of QTextEdit
In Syntax Highlighting in QTextEdit example, I want highlight xml text in a QTextEdit, so change only some part of text, like the one in the angle brackets, and not all text.
All work properly, but ...