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
1
vote
1answer
34 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
18 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
69 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 => [...
1
vote
0answers
40 views

Changing the colors of zsh syntax highlighting - Robbyrussel theme

Does anyone know how to remove the directory highlighting in ZSH with the robbyrussel theme? This issue is driving me mad lately. Some directories (not all) are being randomly highlighted, and in ...
0
votes
0answers
17 views

How to properly highlight the syntax in interactive environments?

Consider the following block code: $ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash Checking for `rbenv' in PATH: /home/daniel/.rbenv/bin/rbenv ...
0
votes
0answers
24 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
77 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
120 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 ...
1
vote
0answers
86 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
30 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?
0
votes
0answers
52 views

Highlighting a specific string in an XML file in Visual Studio Code?

Hithere, I have no coding talents to speak of, but I frequently use xml files and do some basic editing on them. For that I have been using Notepad++, but recently I switched to Visual Studio Code. ...
1
vote
1answer
155 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
258 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
68 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
151 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 ...
1
vote
0answers
149 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
314 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
0answers
69 views

Visual Studio Code PHP Syntax-Highlighting

I don't really understand why the syntax is not highlighted in Visual Studio Code. I have set the language to php, installed Intelephense and restarted everything... shouldn't the syntax now be ...
0
votes
1answer
66 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
65 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
48 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
56 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
370 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
40 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. I just ...
0
votes
1answer
81 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
318 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
61 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
685 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
37 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
276 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
726 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
1k 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
99 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
451 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
168 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 ...
1
vote
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
220 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
96 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....
4
votes
1answer
2k 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 ...
2
votes
1answer
3k 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
560 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 ...
12
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
219 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 ...
6
votes
1answer
3k 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
vote
0answers
216 views

Highlight comment in Notepad++ after langs.xml alteration

I am trying to fit Notepad++'s highlighting to my needs. Using MySQL most of the highlighting work is ok with the "SQL" setting under languages. I now want Notepad++ to highlight single-line ...
1
vote
1answer
33 views

In-document highlighting hint for Kate

Is it possible to provide a hint for Kate which highlighting to use for a given document (inside the document itself) so that I don't have to set it manually? If so, in which syntax?

1
2 3 4 5
7