Questions tagged [syntax-highlighting]

Syntax highlighting is a feature of text editors that displays text, especially source code, in different colors and fonts according to the category of terms.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Shell prompt colored outside of tmux, but not in tmux; how can I get colored prompt in tmux?

I am a new user of tmux and wondering how I can highlight machine name and working directory? What I mean is below. In default Ubuntu terminal: While in tmux: I know this is a minor, but having ...
Darren Christopher's user avatar
0 votes
0 answers
32 views

Disable syntax highlight in Notepad++ but keep autocompletion enabled [duplicate]

I want to fully disable syntax highlight in Notepad++ but keep autocompletion and auto-closing HTML tags enabled. How can I disable only syntax highlight? Edit: I want to do this for only one or few ...
t1m013y's user avatar
1 vote
1 answer
196 views

How to fix code blocks in list syntax highlighting of Markdown files in Codium?

I am using Codium and VSCode to edit Markdown files. The syntax highlighting breaks inside of code-blocks under an item: Some list with codeblocks: - dikfree ```sh # Interesting comment df -h ...
Human's user avatar
  • 553
1 vote
1 answer
117 views

zsh-syntax-highlighting writes parameter expansion in black

I have installed zsh-syntax-highlighting. This works well, except of one oddity: When I type a parameter expansion as a command argument, i.e. foo $PWD as soon as I type the $P, the parameter ...
user1934428's user avatar
1 vote
0 answers
129 views

Sublime Text 4 sql highlight inside a string

Currently, if I have sql commands inside a python string, Sublime Text highlights it. However if it's an "f string", it does not recognize the sql inside. Is there any way to make it work ...
franksands's user avatar
1 vote
1 answer
2k views

Far Manager with FarColorer plugin How to change change editor background color?

I use Far Manager 3.0 under Windows 10 x64, with Far Colorer plugin to highlight syntax ( in particular, in LaTex). Suddenly the Editor background change color from the usual blue to white; I think ...
Alexander Gelbukh's user avatar
0 votes
1 answer
277 views

Geany text editor doesn't highlight codes anymore

Yesterday I wrote a simple python program using Geany and it worked just right, today when I went to write another program, I received error 9009 and the editor didn't highlight any words, they were ...
Paeython's user avatar
1 vote
1 answer
2k views

How to easily disable vscode's alternating bracket and parenthesis highlighting

I just recently updated my vscode installation to version 1.67.0, and am seeing what in my opinion is very aggressive syntax highlighting of all brackets and parenthesis regardless of what theme I ...
Joshua Kleckner's user avatar
3 votes
1 answer
810 views

How to change syntax highlighting of URLs in Visual Studio Code

One answer is to just turn off linkifying of URLs altogether: "[html]": { "editor.links": false }, But what I'm trying to do is keep that feature and turn off the actual ...
dreeves's user avatar
  • 1,033
0 votes
1 answer
1k views

zsh-syntax-highlighting for PowerShell

I've been using Zsh for a long time and have installed a syntax highlighting extension such that, as shown in the picture below, when I enter the name of a program that doesn't exist on the console, ...
digitalguy99's user avatar
0 votes
1 answer
361 views

Dot Matrix Printer Source Code Syntax Highlighting

I am using an OKI Microline 3390 to print out things from my linux box. I am using it as a text-only printer. No graphics, no PDF, no ghostscript ... A text file, say, is sent to the printer as a ...
Dennis Wydra's user avatar
0 votes
1 answer
417 views

VBA Syntax error calling Shell object

In my VBA script, I have written code to create another .vbs script and write a line of code to that script. Here is the code: Set a = fs.CreateTextFile("C:\Users\user\documents\invis.vbs", ...
Ellie Fox's user avatar
2 votes
3 answers
1k views

Permanently disable syntax highlighting in Notepad++ for all file types

I am trying to persistently turn off all syntax highlighting for all document types at all times. I understand that I can go to the menu and select "Language > None (Normal Text)" each ...
Paul K.'s user avatar
  • 73
0 votes
0 answers
2k views

Can I syntax-highlight text for pasting into a word processor?

I have a piece of code (e.g. a C or Java function) which I'm going to put in a presentation. I would like to have this code syntax-highlighted; but LibreOffice Impress (and MS Powerpoint) don't have ...
einpoklum's user avatar
  • 9,473
1 vote
1 answer
323 views

How does BBEdit define "Predefined symbols" when syntax coloring?

The text editor BBEdit offers syntax coloring options for various categories of source code, including plain text, comments, strings, language keywords, etc. One of the categories is "Predefined ...
thecommexokid's user avatar
1 vote
1 answer
1k views

Notepad++ Change color of next highlighted text

When highlighting certain text, Notepad++ can highlight other matching text. I want to change background color of the other matching text (in the attached shot, I want to change the gray color), does ...
moibrahim's user avatar
1 vote
1 answer
366 views

Copy Text with Syntax Highlighting option not available in Notepad++ plugin commands

I'm trying to copy code from Notepad++ and copy the formatting to MSWord. I have this on one PC and it works fine, but it is downloaded to another and the option to Copy Text with Syntax Highlighting ...
christy allen's user avatar
5 votes
2 answers
6k views

Is there a Windows terminal app that will colorize certain text strings that appear in the terminal? [closed]

When your command line app pours a lot of text at you, it would be nice if it could colorize the words ERROR and WARNING. Anyone found an app that will do that?
dwilbank's user avatar
  • 183
-4 votes
1 answer
132 views

Are there genuine/updated instructions on how to make Notepad++ "understand" (syntax highlighting) a custom library/framework of mine?

Please note: I have in the past several years many times searched online for this, read the Notepad++ documentation and experimented heavily with Notepad++. I could not ever make it do this in spite ...
Ivy's user avatar
  • 1
2 votes
0 answers
422 views

Visual Studio Code: Changing language syntax highlighting within a document with multiple languages

I have files with snippets in multiple different languages. I would like to change the syntax highlighting for a different blocks of code with, for example, comment blocks. Example would be: SQL ...
dxo's user avatar
  • 21
2 votes
1 answer
840 views

Has anyone developed a Notepad++ Lexer for "begin/end" block languages like Verilog and Pascal?

I found this post from 8 years ago. The conclusion was syntax highlighting of code blocks in languages using begin / end instead of braces would require writing a custom Lexer for NPP. Here's an ...
tim11g's user avatar
  • 1,588
0 votes
1 answer
233 views

Geany "Syntax coloring" isn't functioning properly

I'm writing a python script on Geany. I really don't know what I did but it seems Geany isn't coloring python syntax properly in the editor. Some python commands and arguments aren't marked as blue ...
Kingunem's user avatar
0 votes
1 answer
949 views

Sublime Text 3 - can I enable multiple syntax highlighting in the same document?

In Sublime Text 3, is it possible to achieve multiple syntax highlighting in the same document? I am aware that I can change the syntax of an entire document, using: View => Syntax => [...
Rounin's user avatar
  • 172
0 votes
0 answers
245 views

Eclipse compare editor: syntax highlighting for files without proper extension

my current (Lua-)project contains multiple files without a proper file extension (due to historical reasons). By choosing 'Open with' one can set a proper editor to get syntax highlighting. But it ...
Rorschach's user avatar
  • 101
0 votes
0 answers
1k views

Request Notepad++ (NPP) cshtml syntax highlight file

I sometime have to open cshtml file in Notepad++ (NPP). As you may know, this cshtml file is generated when creating an asp.net web project (Razor or MVC). It is a mix of csharp syntax and HTML syntax....
Just a HK developer's user avatar
0 votes
1 answer
5k views

How do I enable syntax highlighting in PowerShell Core?

I have recently installed PowerShell Core through Chocolatey. My newly installed PowerShell Core doesn't have syntax highlighting (red circles in the screenshot below) nor does it append the ...
Marco Lackovic's user avatar
3 votes
0 answers
561 views

Vim markdown syntax highlighting prevent underscore interpretation

I am using vim to edit my source code, but the syntax highlighting is doing one particular thing that is unfortunate. Per ordinary markdown notation, the underscore character ordinarily does a ...
Him's user avatar
  • 366
0 votes
1 answer
2k views

In Acrobat Pro 2017, how do I apply highlighting to selected text, using keyboard only?

In Acrobat Pro 2017, I cannot locate any keyboard shortcut for applying highlighting to text using keyboard only. Can it be done?
LRY's user avatar
  • 1
2 votes
1 answer
717 views

R syntax highlighting in Jupyter Lab not working

I use a Macbook Pro running High Sierra. At first I created a R virtual environment with: conda create -n R r-essentials r-base Then I installed Java JDK, inside the new environment with: conda ...
Omar Omeiri's user avatar
0 votes
2 answers
767 views

Notepad++ Copy text with Syntax highlighting does not work

I copy HTML text with syntax highlighting in Notepad++ Then I insert it into the MS Word, taking into account the formatting inserting HTML text with syntax highlighting into the MS Word, taking into ...
Peter Omelnitskyi's user avatar
2 votes
0 answers
339 views

How to prevent vim from highlighting empty spaces?

I'm not sure if this is a vim problem or command prompt. I am using WSL to ssh to a remote machine (centos). I'm using vim to edit source code from the remote machine. When I load the source code, ...
Lance's user avatar
  • 143
1 vote
1 answer
530 views

Notepad++: highlighting characters of a line (Intel HEX-file highliting)

I have the problem to highlight the Intel HEX-file syntax. The 1. character of a line is ":" The 2. to 3. character of a line should be in a different color (2 chars) The 4. to 7. character of a line ...
user1074588's user avatar
3 votes
2 answers
1k views

Notepad++ COBOL Comment Highlighting with Line Numbers

How can I get COBOL comments to use proper syntax highlighting in Notepad++ when line numbers are filled in columns 1-6? I am a developer who is using Notepad++ to code in COBOL. I use the built-in ...
Southpaw Hare's user avatar
1 vote
0 answers
709 views

Visual Studio Code does not highlight syntax errors

I have a problem with VS code. Whatever I write is not treated by VS code as an error. For example this code: itsNotWorking(1111asdasdasd asdasd) { asdasd cx asd 22 1a}}}}}}}}}}}}&...
Kulkejszyn's user avatar
0 votes
1 answer
308 views

Sublime Text 3 doesn't highlight some JavaScript object properties

Sublime Text 3 doesn't highlight some JavaScript object properties. Screenshot: Hopefully, the picture is pretty much self-explaining. Why doesn't my "this.description" property get the proper ...
tnsaturday's user avatar
1 vote
1 answer
149 views

Associate `.lift` files with XML syntax highlighting in Brackets

Cross-posted from an old unanswered Stack Overflow question (here). I'm using a .lift (Lexicon Interchange FormaT) file, which Brackets does not recognise, but, since it's basically an XML file, the ...
Miztli's user avatar
  • 113
1 vote
1 answer
286 views

disable syntax highlighting in vim for new input in insert mode

When I edit a shell script with syntax highlighting enabled in vim, the moment I type opening " or ${ the editor immediately re-highlights the rest of the file as if it is a part of the string or ...
Igor Bukanov's user avatar
1 vote
1 answer
79 views

Why isn't Pygments working in Pidgin on Ubuntu?

I'm trying to get code syntax highlighting working in Pidgin. I've installed it with these commands: sudo add-apt-repository ppa:kip/pidgin sudo apt-get install -y pidgin pidgin-sipe It works fine ...
isherwood's user avatar
  • 667
0 votes
1 answer
1k views

How to avoid syntax-highlight issue with backtick escape sequences inside a template literal?

Notepad++ has an issue where it breaks the syntax-highlighting when using a backtick escape sequence inside a template literal. It doesn't happen when escaping a single quote in a single quote string ...
user7393973's user avatar
1 vote
0 answers
46 views

How do I hide empyy lines in a Python file in Vim?

I have some empty lines showing as dark purple lines in my color theme in vim(Gvim). I would like to hide them for real. I use "set list" but that just replaces with some other characters. ...
yarun can's user avatar
  • 1,000
0 votes
1 answer
202 views

How to remove a limit of 100kB when highlighting a file with custom syntax?

I have created a custom syntax file for Smalltalk/X - smalltalk embedded with C. The highlighting file is mostly correct (still needs some love, but that is out of the scope of this question). I ...
tukan's user avatar
  • 2,040
0 votes
2 answers
552 views

Notepad++ with "sub levels" [duplicate]

I am writing HTML in Notepad++, but I did not find a way of making it more organized. I want, for example, that "head" is more to the right than "html". Example: Notepad++ is like: And i want it to ...
Patrick Feeney's user avatar
6 votes
1 answer
5k views

Syntax Highlighting Color of HereDoc in Shell Language

I need some help modifying the default syntax colors. I've already spent too much time trying to research how to change the following shell script default, please help me... ;-( Here's the way I don'...
Dennis Jorgenson's user avatar
0 votes
0 answers
149 views

Atom.io | How to edit CSON file

I am trying to edit my language-php/grammars/php.cson file in order to resolve an issue with syntax highlighting. However, I cannot seem to find this on my Windows installation of Atom.io ... It is ...
ma77c's user avatar
  • 167
0 votes
1 answer
1k views

Babel syntax highlighting for React not working?

I've installed the Babel package in Sublime Text 3 (I see it in Preferences -> Package Settings), but the syntax highlighting for a sample App.js still looks weird: For example, I would expect the ...
Kurt Peek's user avatar
  • 175
0 votes
0 answers
78 views

Change style for extensions that already have a style in Notepad++ [duplicate]

I've already tried the answers from here and here and neither fixed my problem. In Notepad++ using the Obsidian theme, the syntax highlighting for JSON files disappears; everything is white on black. ...
ClydeTheGhost's user avatar
0 votes
1 answer
462 views

SublimeText highlighting for plain text

Sublime has highlighting plugins for almost any language, however often i use raw text format to write down some ongoing notes. When the content gets big enough it is useful to have some ...
vach's user avatar
  • 305
1 vote
1 answer
1k views

vim not picking up new syntax files

I copied this GLSL syntax file to /usr/share/vim/vim74/syntax/glsl.vim, its permissions are -rw-r--r-- same as other syntax files. I gvim /tmp/x.glsl but it does not activate GLSL syntax highlighting ...
spraff's user avatar
  • 2,148
2 votes
1 answer
4k views

How to edit/change/modify the Syntax Highlighting Color in VS Code

How to edit/change/modify the Syntax Highlighting Color in VS Code, ie for Autohotkey and/or Markdown languages? For example: Im using the High Contrast theme (black background), and in that theme, ...
Faye's user avatar
  • 121
1 vote
1 answer
202 views

How can I change certain keywords in vim to all-caps?

How can I change certain keywords in vim to all-caps? I would like to know as I am programming in Fortran and the required style is to have all the intrinsic functions in caps. For example the keyword ...
Matt Ellis's user avatar

1
2 3 4 5
7