Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

4
votes
1answer
1k 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 ...
4
votes
1answer
1k views

Sass and Haml syntax highlighting in Geany (Ubuntu)

I'm using Sass (not SCSS) and Haml, and I'd like them to be syntax highlighted in Geany rather than appear as plain text. Is there a way to enable or install this functionality?
3
votes
1answer
986 views

Notepad++ Syntax Highlight: How can I set a delimiter with spaces?

I'm creating my User Define Language in notepad++, and I have a delimiter set like this: open: try escape: close: : But when I type entry, the try gets highlighted, as the delimiter I've set. How ...
3
votes
1answer
206 views

Highlighting subroutines in Notepad++

I would like to highlight the contents of IF statements in a slightly different colour from the background, so that I can see them more easily. Is it possible in Notepad++? it would be amazing to ...
2
votes
1answer
542 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, ...
2
votes
1answer
2k 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> &...
2
votes
1answer
848 views

Sublime 3 PHP/HTML syntax highlighting

This image sums it up. Whenever I write a PHP tag "inside" a PHP tag that ends in open brackets [if, else, for, ...], the rest of the line becomes white.
2
votes
1answer
47 views

Dreamweaver: Auto-correct

In Notepad++ when you type a wrong tag or a wrong word, the color will stay black instead of blue. How do you set up this preference in Dreamweaver CC? Thanks.
3
votes
0answers
522 views

Importing pygments' highlighting to vim

Usually, vim does very good job in highlighting, using the packaged syntax files. Unfortunately, it does bad job with MySQL. At first, I looked everywhere for a better MySQL vim syntax file, with no ...
2
votes
0answers
299 views

Sublime Text 3 PHP Syntax Highlighting Issue

Sublime Text 3 is set to PHP syntax but nesting causes some weird syntax highlighting issue as seen in the image below. I was wondering if anyone else encountered this issue and if they solved it? ...
2
votes
0answers
201 views

Custom-defined type highlighting in Sublime Text

I am looking for a configuration/combination of plugins + clang (or any other parser) that can allow sublime text to highlight all custom defined types just like it highlights native types such as int,...
2
votes
0answers
289 views

Is it possible in vim to search for a term excluding those appearing in comments/block comments?

For example, if I want to search for \<data\> but I want to skip any entries appearing in multi-line block comments like this: /* * Don't match comments containing the term 'data' */ I can't ...
2
votes
0answers
505 views

Sublime Text: Why regex in syntax highlighting does not work?

In Sublime Text 3, a default syntax highlighting rule paints a SQL SELECT just fine if it's in the same line, but not if it's in the next line: vs After reading this question I opened the PHP ...
2
votes
0answers
22 views

Customise HTML-Kit Tools syntax highlighting

I'm using HTML-Kit tools to edit a PHP site. The syntax highlighting's really helpful, but it would be good if I could edit it, specifically so that my custom functions would be highlighted (as ...
2
votes
0answers
757 views

Get sublime text 2 (sublimecodeintel) to parse mason

So Sublime Text 2 seems to getting a lot of love lately. I am using the Sublime Code intel plugin, for auto completion. The problem is, it does not recognize .mi files as MASON files. I looked into ...
2
votes
0answers
136 views

Does MSDN has syntax highligthing?

Reading the MSDN documentation in a web browser is a real pain because the absence of syntax highlighting. In those web pages, code spinets are surrounded by a div with class="codeSnippetContainerCode"...
1
vote
0answers
22 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 ...
1
vote
0answers
621 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
130 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 ...
1
vote
0answers
114 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
0answers
79 views

Make part of php comment line bold in vim

I've a PHP script, and I would like to know if natively, I can make a part of a comment line BOLD. For example a comment : // it is released when you execute RELEASE_LOCK(), execute a new GET_LOCK()...
1
vote
0answers
1k views

How change the appearance of the programme in Notepad++

When doing Python or Java programming or using any other programming language How to change the appearance of the code, meaning as far as I can see, at a time only the appearance of one element(...
1
vote
0answers
466 views

Create a User Defined Language combining 2 languages in Notepad++

I want to have syntax highlighting for Volt, the Phalcon template engine, in Notepad++. The closest I have found online is this one for Twig which seems very similar, so I think perhaps that the idea ...
1
vote
0answers
173 views

How to make Geany highlight smarty block comments?

How to make Geany highlight smarty block comments ? Smarty block comments are: start {* end *} Thanks.
1
vote
0answers
409 views

IntelliJ / WebStorm Editor Colors not showing correctly

I'm running WebStorm 10.0.2, and for an unknown reason someday my CoffeeScript code started showing only some highlighting. I have no idea of what's going on since the settings seems to be fine. ...
1
vote
0answers
207 views

In Sublime Text 2, how do I highlight any code which is between <?php and ?>

I'm coding in php for a Wordpress project at the moment and using Sublime Text 2. It's great, however, I would love to be able to quickly see what is php and what is html (also javascript, but that is ...
1
vote
0answers
402 views

Syntax highlighting in ssh sessions

I should really like to have my ssh sessions do syntax highlighting of configurations et al. of the output from my remote embedded devices. The devices cannot in any way output anything but flat text. ...
1
vote
0answers
2k views

Nano syntax highlighting on Mac OSX not working

I installed the Macports version of the nano text editor sudo port install nano +colors and now i have all the syntax highlighting nanorc files ls /opt/local/share/nano drwxr-xr-x 31 root admin ...
1
vote
0answers
302 views

How do I turn off quoted string coloring in emacs 24.3.1

If I edit any random text file in GNU emacs 24.3.1 in fundamental mode, it tries to match quotes and change the color of the text between them. This is fine if the file contains English text, but I'm ...
1
vote
0answers
836 views

Eclipse syntax coloring for C / C++ comments

When writing C/C++ code in eclipse, is it possible to set up the syntax colouring in such a way that it displays comments starting with /** in another colour than normal multi-line comments (starting ...
1
vote
0answers
528 views

Convert vim syntax highlighting for use with gedit

Is there an easy way to convert vim syntax highlighting definitions for use with GtkSourceView/gedit?
1
vote
0answers
933 views

Nested/multiple brace-matching in Notepad++

In Notepad++, is it possible to force all (or at least the 3 or 4 deepest) pairs of braces/brackets/parens/etc. that enclose the cursor to become highlighted? Preferably in different colors for each ...
1
vote
0answers
216 views

Vim syntax files - Ignore line prefix

I have files containing code within a prefix-based structure, such as: perl: sub abc { perl: return "def"; perl: } I'd like to be able to highlight the perl as normal. i.e. ignore the perl: ...
1
vote
0answers
220 views

Selective highlighting with netbeans

If I am working on a file that has a mix of html and php code for example is there any way to just highlight the php code when I am in a php code block and highlight only the html code when in a html ...
0
votes
0answers
54 views

Syntax highlighting for PowerShell on Linux?

With PowerShell on Linux (pwsh), is there a way to get syntax highlighting on the console in the same way that it works by default in the Windows console?
0
votes
0answers
22 views

IntelliJ: How to turn off highlights of class, method names

How can I turn off the highlights on import statements class names method names (signature and calls) things such as @Test ?
0
votes
0answers
32 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
0answers
79 views

How do I get Atom.io to properly color SQL when inside a PHP string?

Am I missing some package to correct this? At times, it works correctly ... Sometimes it does not work correctly ..
0
votes
0answers
85 views

Visual Studio - refresh syntax highlighting

I'm using Visual Studio to develop Python applications. Everything works well, but syntax highlighting sometimes just goes wrong. For example: classes. < purple, including dot which should be ...
0
votes
0answers
63 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 ...
0
votes
0answers
745 views

Visual Studio and syntax highlighting

I just installed the VS Syntax Highlighting pack but now have no idea how to actually apply colored highlighting to existing C# or XML code. There is no 'Quick start' guide and I have dug through ...
0
votes
0answers
260 views

Typescript syntax highlighting of strings in Solarized light

I just installed the Typescript plugin. (I tried installing through PackageControl and manually). In Solarized light, the strings (in 'single' or "double" quotes) are the same formatting as default ...
0
votes
0answers
464 views

Inconsistent Notepad++ syntax highlighting in Bash/Shell

What I want is (controlled by SCALAR and PARAM styles): However, with quotes ("), everything becomes (controlled by STRING style): How do I make the 2 undermost lines get the highlighting, as per ...
0
votes
0answers
70 views

php end tag in strings breaks vim syntax highlighting

I have the following line a long PHP file: preg_match_all("/<.*?>/", $rows[2],$tmp); and after the ?> in this line the syntax highlighting in vim is gone for the rest of the file. How can I ...
0
votes
0answers
174 views

vim - syntastic is highlighting valid syntax

I've just installed syntastic and it's all over the place. Variables are errors, imports are errors, modules don't have dot operator, you name it. What can I do about this ?! (I would've included an ...
0
votes
0answers
535 views

Set Notepad++ to enable syntax highlighting for files without extensions?

I'd like to set Notepad++ to enable Ruby syntax highlighting via the Style Configuration for a file without an extension, in this case, Vagrantfile. Any way to accomplish this? Note that other ...
0
votes
0answers
64 views

Vim-SyntaxHighlight: Custom Syntax Highlighting With Vim

I'm trying to make my own syntax highlighting for vim. I was following the instructions in here (first answer) but I need to set a group for import and pack, and another group for func, lib, group. ...
0
votes
0answers
85 views

Copy Sublime Syntax from one theme to another

I like to use Sublime Text 2, but the theme I use (Pastels on Dark) doesn't have the syntax for certain key words in C#. As I understand it the theme is linked to the syntax (or visa versa) Below are ...
0
votes
0answers
85 views

Change the color for a keyword in Vim for ALL filetypes

I'm using &showbreak=repeat(' ', 5) to add indentation to wordwrapped lines. What I WANT to do is add a bright red >>>> instead. How would I change all >>>> occurrences ...
0
votes
0answers
1k views

Can you create your own language definition for syntax highlighting in Eclipse/Aptana Studio?

I usually use UltraEdit which is great at allowing custom languages, but their FTP tool sucks! I like to edit my files directly on the server in a project directory and not on my local box. Lately, I'...