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
0 answers
16 views

Gnome Gedit does not use separate color to highlight operators

I'd like to highlight operators (like + - : ; = < > !) using separate color. According to "https://github.com/GNOME/gtksourceview/blob/master/data/language-specs/def.lang" they fall ...
Artur's user avatar
  • 1
1 vote
0 answers
54 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
0 votes
1 answer
1k 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
480 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
  • 993
0 votes
1 answer
751 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
184 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
252 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
1 vote
3 answers
780 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
  • 63
0 votes
0 answers
929 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
  • 8,437
0 votes
1 answer
124 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
924 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
260 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
3 votes
2 answers
4k 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
  • 163
-4 votes
1 answer
95 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
267 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
603 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,568
0 votes
1 answer
139 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
747 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 - Standing with Ukraine's user avatar
0 votes
0 answers
188 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
857 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
3k 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
407 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
  • 296
0 votes
1 answer
1k 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
612 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
621 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
268 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
462 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
2 votes
1 answer
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
586 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
272 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
138 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
223 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
76 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
  • 644
0 votes
1 answer
849 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
  • 970
0 votes
1 answer
161 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
  • 1,742
0 votes
2 answers
502 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
4k 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
120 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
76 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
394 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
  • 289
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,046
2 votes
1 answer
3k 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
  • 111
1 vote
1 answer
180 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 vote
1 answer
983 views

Vim highlight all text after multiple "#"

I am trying to make text bold if it appears after a series of # hashes. This is the line in my .vimrc: au BufRead,BufNewFile *.txt hi header cterm=cyan ctermbg=red and my attempted regular ...
haz's user avatar
  • 113
3 votes
1 answer
282 views

How can I disable vim's textwidth for specific lines?

I have textwidth set to 80 characters, and I have it set to 75 characters for gitcommit files. The thing is, the git commits at my company always have a last line that indicates some metadata about ...
jwir3's user avatar
  • 391
3 votes
0 answers
2k views

In Notepad++ how can I use the Style Configurator to change my user-defined language?

I've created a user-defined language for Notepad++, including all the syntax styling. It works well. (It's actually for Markdown, FWIW.) I coded all the colors into the style when I made it. The ...
Andrew K's user avatar
1 vote
0 answers
360 views

syntax highlighting breaks off on vim as you page up/down (on OSX terminal and iterm2)

This is a weird bug the problem is the syntax highlighting (say zenburn) on vim randomly appears and disappears as I page up and down (using ctrlu and ctrld).. for example compare these two renders ...
abbood's user avatar
  • 1,174
0 votes
1 answer
2k views

Sublime match if endif block

Is there a way in sublimetext3 (by any plugins) to jump from start of an if block to corresponding endif? Using fortran code. Any other action besides jumping would work as well, like highlight or ...
kakk11's user avatar
  • 101

1
2 3 4 5
7