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
11 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 ...
user avatar
3 votes
1 answer
45 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 ...
user avatar
  • 953
0 votes
0 answers
102 views

Zsh-like syntax highlighting on 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, ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
0 votes
1 answer
52 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", ...
user avatar
1 vote
3 answers
226 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 ...
user avatar
  • 33
0 votes
0 answers
190 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 ...
user avatar
  • 7,302
0 votes
1 answer
51 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 ...
user avatar
1 vote
1 answer
242 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 ...
user avatar
1 vote
1 answer
127 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 ...
user avatar
1 vote
2 answers
2k 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?
user avatar
  • 143
-4 votes
1 answer
58 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 ...
user avatar
  • 1
2 votes
0 answers
127 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 ...
user avatar
  • 21
1 vote
1 answer
355 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 ...
user avatar
  • 1,538
0 votes
1 answer
35 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 ...
user avatar
0 votes
1 answer
441 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 => [...
user avatar
0 votes
0 answers
69 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 ...
user avatar
  • 101
0 votes
0 answers
587 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....
user avatar
0 votes
1 answer
2k 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 ...
user avatar
2 votes
0 answers
254 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 ...
user avatar
  • 266
0 votes
1 answer
138 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?
user avatar
  • 1
2 votes
1 answer
474 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 ...
user avatar
0 votes
2 answers
505 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 ...
user avatar
2 votes
0 answers
192 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, ...
user avatar
  • 121
1 vote
1 answer
350 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 ...
user avatar
2 votes
1 answer
662 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 ...
user avatar
1 vote
0 answers
494 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}}}}}}}}}}}}&...
user avatar
0 votes
1 answer
172 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 ...
user avatar
1 vote
1 answer
108 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 ...
user avatar
  • 113
0 votes
1 answer
119 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 ...
user avatar
1 vote
1 answer
68 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 ...
user avatar
  • 645
0 votes
1 answer
710 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 ...
user avatar
1 vote
0 answers
45 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. ...
user avatar
  • 910
0 votes
1 answer
133 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 ...
user avatar
  • 1,699
0 votes
2 answers
425 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 ...
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'...
user avatar
0 votes
0 answers
90 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 ...
user avatar
  • 167
0 votes
1 answer
863 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 ...
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. ...
user avatar
0 votes
1 answer
345 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 ...
user avatar
  • 255
1 vote
1 answer
973 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 ...
user avatar
  • 1,860
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, ...
user avatar
  • 101
1 vote
1 answer
138 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 ...
user avatar
1 vote
1 answer
701 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 ...
user avatar
  • 113
3 votes
1 answer
243 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 ...
user avatar
  • 381
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 ...
user avatar
1 vote
0 answers
289 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 ...
user avatar
  • 1,052
0 votes
1 answer
1k 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 ...
user avatar
  • 101
0 votes
0 answers
88 views

Is the coderay syntax-highlighting plugin built into redmine, or does it have to be installed separately?

I have installed a recent version of redmine - 3.3.3 but there is no syntax highlighting plugin included in the default installation. Most redmine searches mention coderay. Is that something I have ...
user avatar
  • 711
1 vote
1 answer
108 views

Finding source of Vim syntax highlighting

I have installed Vim 8.0 on my Windows 7 and Windows 10 machines. When I edit a text file using restructured text (with a .txt extension) and use :set ft=rst, syntax highlighting starts up as expected....
user avatar

1
2 3 4 5
7