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
1answer
29 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 ...
1
vote
1answer
34 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 ...
0
votes
0answers
38 views

How can I highlight output in KDE Konsole terminal, just as SecureCRT does?

How can I highlight output in KDE Konsole terminal, just as SecureCRT does?! Note: Not shell-dependent, i.e. highlighting a desired string, regardless what's causing the output. What I specifically ...
1
vote
2answers
217 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?
-4
votes
1answer
40 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 ...
0
votes
0answers
65 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 ...
1
vote
1answer
166 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 ...
0
votes
1answer
26 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 ...
0
votes
1answer
175 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 => [...
0
votes
0answers
34 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 ...
0
votes
0answers
308 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....
0
votes
1answer
463 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 ...
2
votes
0answers
188 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 ...
0
votes
1answer
62 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?
2
votes
1answer
323 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 ...
0
votes
2answers
416 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 ...
2
votes
0answers
161 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, ...
1
vote
1answer
278 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 ...
2
votes
1answer
439 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 ...
1
vote
0answers
448 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}}}}}}}}}}}}&...
0
votes
1answer
94 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 ...
1
vote
1answer
84 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 ...
0
votes
1answer
71 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 ...
1
vote
1answer
61 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 ...
0
votes
1answer
582 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 ...
1
vote
0answers
43 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. ...
0
votes
1answer
106 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 ...
0
votes
2answers
375 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 ...
6
votes
1answer
3k 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'...
0
votes
0answers
72 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 ...
0
votes
1answer
773 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 ...
0
votes
0answers
58 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. ...
0
votes
1answer
318 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 ...
1
vote
1answer
863 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 ...
2
votes
1answer
2k 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, ...
1
vote
1answer
115 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 ...
1
vote
1answer
558 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 ...
3
votes
1answer
206 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 ...
2
votes
0answers
1k 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 ...
1
vote
0answers
253 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 ...
0
votes
1answer
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 ...
0
votes
0answers
86 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 ...
1
vote
1answer
102 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....
8
votes
2answers
3k views

Detect language of new files in vim (refresh syntax highlighting)

Whenever you open a file, vim performs a series of checks to determine the language of the file and applies the relevant syntax highlighting; first by checking the file extension, then by looking ...
4
votes
1answer
4k views

How to enhance Notepad++ to support Laravel blade syntax highlighting in a PHP file?

After looking online I cannot find any info on enhancing N++ to support syntax highlighting for Laravel's Blade syntax (*.blade.php). Example: demo.blade.php <html> <head> &...
0
votes
1answer
619 views

combining syntax highlighting in notepad++

Is it possible to highlight two (or more) languages simultaneously in notepad++? In this particular case I am working with xml files, but in certain tags in the files I am using using python, JS, and ...
3
votes
1answer
2k views

Custom Syntax Highlighting for AutoHotkey in Notepad++

I'm using the latest version of Notepad++ as of this post (version 7.3.3, 64-bit) with User Defined Language v.2.1.0.12. I've added syntax highlighting for AutoHotkey provided by the AHK message ...
14
votes
1answer
2k views

vim syntax highlight limited to 3000 chars

How do I allow vim to work its syntax highlight on lines longer than 3000 characters? I am having to write tests for a system and the input for the tests are a mess of encapsulated formats. My tests ...
1
vote
1answer
248 views

How to export syntax highlighting rules from vim to vimrc format

When I analyze log files in vim I often create ad-hoc syntax highlighting rules for better orientation. For example :syntax match myerror match /NullPointerException/ :highlight myerror ctermbg=red ...
7
votes
1answer
4k views

How to get Sublime Text 3 to automatically highlight CSHTML as HTML

I have a bunch of .CSHTML files that I want to be highlighted. Every time I open a .CSHTML file I have to go to the bottom right of the sublime text window and manually tell it to treat the CSHTML as ...

1
2 3 4 5
7