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.

learn more… | top users | synonyms

0
votes
0answers
12 views

How to export with style token (highlight) in notepad++

I'm using the notepad++ style token to analysis my trace data, and I need to export the content to MS word. The problem I am facing is that, the nppexport will not carry along the **style token* ...
0
votes
0answers
2 views

Adding new aliases to pygmentize

Quite often there's a single format but with different extensions… e.g. XML can be .xml, .xmi, .graphml, and million others. Unfortunately pygmentize guesses the appropriate lexer by the file ...
1
vote
0answers
24 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 ...
0
votes
0answers
31 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 ...
1
vote
1answer
133 views

Notepad++ change color of import statement in Python

Is there a way in Notepad++ to adjust the syntax highlighting for specific keywords? What I want is to be able to change the color of the import keyword in Python. I know you can create a user defined ...
0
votes
1answer
31 views

Inno Setup script (.iss) syntax highlight in Sublime Text?

I'm working on the Inno Setup based installer. I'd prefer to edit the script file in Sublime Text, but it doesn't appear to detect the language and doesn't enable syntax highlighting. I have failed so ...
1
vote
1answer
52 views

SublimeText Markdown Extended add Roman Number Highlighting

In this question, I've inquired about how to highlight more than one markdown list punctuation item. I now want to extend the highlighting to roman numbers as well, because those are supported by ...
0
votes
0answers
22 views

Vim syntax highlighting for template formats?

A lot of the time I use jinja2 or erb templates for things other than HTML (for example, pretty much every configuration management / automation tool in existence uses templating to make working with ...
1
vote
1answer
113 views

SublimeText 3 Syntax Highlighting Markdown List Asterisk

I installed the packages MarkdownExtended and MonokaiExtended, which gives me an already quite good highlighting for markdown files. However, being a perfectionist, I want to color the asterisks of ...
1
vote
2answers
56 views

Atom Editor change bracket, brace colour?

I want to use the solarized-light theme for Atom Editor I managed to change the background colour, and can't find where to change the bracket, brace colours I tried .brace { color: hsl(168, 100%, ...
1
vote
1answer
30 views

yml file syntax highlighting with Sublime Text

How can I get proper syntax highlighting in yml files, such as users.yml with Sublime Text. As of now there is no highlighting, even erroneous things such as # symbols in string interpolation being ...
0
votes
0answers
27 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
1answer
30 views

How to make vim syntax highlight quoted text in .tex file?

In emacs, the text quoted between `` and '' are highlighted as green. It comes in handy sometimes. I believe should be possible to also do it in latex. But I don't know how. I checked the tex.vim in ...
1
vote
1answer
13 views

vim finding all extensions associated with a filetype

How can I find all file extensions that will use specific filetype (highlighting)? For example I know that both ".xml" and ".xmi" files will by opened as "xml" filetype, however I would like to find ...
0
votes
0answers
26 views

How to get Kate like syntax highlighting on eclipse ide?

I'm using eclipse IDE 3.8.1 on Debian Jessie 8.2. I checked the settings of eclipse and found no option to change syntax highlighting. I would like to use the highlighting of KDE's Kate text ...
0
votes
2answers
54 views

Vim: How to highlight every second line?

Is it possible to set up syntax highlighting in vim to highlight every second row?
3
votes
1answer
258 views

How can I highlight .htaccess code in Notepad++?

How can I highlight .htaccess code? I downloaded this XML file and I copy and pasted file content to userDefinedLanguage.xml inside my install directory. According to the documentation found here I ...
1
vote
0answers
45 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 ...
1
vote
1answer
72 views

How to get vim syntax highlighting to work?

I cannot get vim syntax highlighting to work on a suse box. I have (only this two lines) in my ~/.vimrc filetype plugin on syntax on If I open a shell script with .sh an do :set filetype? I get ...
0
votes
0answers
55 views

Code viewer with color syntax integrated to the Mac finder preview panel

On Windows there is a great extension for the preview panel. It shows the content of the selected file as if it was opened in a code editor. This is integrated into the preview panel (no popup ...
0
votes
0answers
63 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
1answer
104 views

Highlight if-else-endif structures in Vim

Is there a way to highlight if-else-endif structures in Vim on demand based on their 'level' in the overall program hierarchy? I.e. I want something like if <<< highlight in red foo else ...
0
votes
1answer
1k views

How do you enable syntax highlighting in visual studio 2015?

In VS2013 when I selected a word or letter or number etc... I would get a purple highlight throughout my file. The first image is an example of VS2013 code highlighting: This image is the same code ...
0
votes
0answers
19 views

Syntax highlighting and filetypes in Kate

Kate recognizes the filetype from the extension of the filename. You can associate filetypes to extensions in Settings -> Kate config -> Open/Save -> File types If kate does not recognize the ...
0
votes
1answer
47 views

Disable xemacs modes and highlighting

How can i disable all the modes in XEmacs that change the appearance or behaviour of my text files? All i want from XEmacs is to just show the text and make changes according to my keyboard input and ...
1
vote
0answers
80 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 ...
0
votes
1answer
185 views

Notepad++ variable name syntax highlight

How to add syntax highlight color to local function scope variable, and also block scope variable when using the let keyword, so I can clearly see local from global variables. JavaScript language ...
0
votes
0answers
168 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 ...
2
votes
1answer
172 views

Pipe to less but keep the highlighting

Is it possible to pipe some output (e.g. dmesg) to a command like less (or an equivalent command) and keep the text highlighting used by the original command printing? example: on the left dmesg | ...
1
vote
0answers
124 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 ...
4
votes
1answer
2k views

notepad++ - Applying CSS styles for SCSS files?

In Notepad++, I have some SCSS files for which I would like the syntax to be highlighted like CSS files are. How do I do this in Notepad++? In other words, I would like to apply the same styles to ...
0
votes
2answers
553 views

How to highlight PHP, HTML & JavaScript at same time with Notepad++?

The file extension and language is PHP, and need to highlight HTML and JavaScript at the same time with the main language PHP in Notepad++ Example of code to highlight: <?php $form_name = ...
0
votes
0answers
35 views

vim syntax highlight export to HTML ignores highlighted search results

I would like to export highlighted code from vim to HTML including highlighted search results. Using :TOhtml works fine, however it omits the search highlights. So, how can I export the highlighted ...
0
votes
0answers
57 views

macrabbit espresso editor enable brackets highlighting

How can I enable the brackets highlighting in macrabbit espresso editor? Is there some possible hack to achieve that? Or some extension or plugin? I use espresso every day and is a very important ...
0
votes
0answers
22 views

Using iTerm2 to query a CouchDB show function, and syntax-highlight the printed 'html' output?

Is is possible to syntax-highlight the printed output in iTerm2 in the following scenario. I am querying a CouchDB show function which outputs html. An example of the command is as follows: curl -X ...
0
votes
1answer
85 views

Extend vim's syntax highlighting for only *some* files?

Our software has many .xml configuration files. Vim colors these files, using e.g. /usr/share/vim/vim74/syntax/xml.vim. But can we customize the coloring for just these files, and not for all .xml ...
1
vote
0answers
71 views

How to make Geany highlight smarty block comments?

How to make Geany highlight smarty block comments ? Smarty block comments are: start {* end *} Thanks.
0
votes
1answer
39 views

How does vim know to syntax-color .hgrc?

With syntax on, vim syntax-highlights my ~/.hgrc file. How does vim recognize this file? How can I get vim to apply the same syntax coloring to a differently-named file?
0
votes
0answers
34 views

Gedit Syntax Highlighting

I'm trying to create a .lang file for some custom code I use. The two issues I'm stuck on are getting an entire line to highlight if it has an equals sign anywhere in it and to highlight lines that ...
1
vote
0answers
159 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. ...
2
votes
1answer
279 views

What sublime text 3 language works with json like code?

Sublime Text 3 works great for editing, however it doesn't seem to have support for json like languages that use comments. For example: HCL (hashicorp language) is compatible with json, but also ...
0
votes
1answer
117 views

Mutt: let vim handle syntax highlighting when viewing plain text attachment

I use mutt for e-mail and I let vim handle plain text attachments. In my ~/.mailcap I have text/plain; view %s ; needsterminal That works fine, but it removes all syntax highlighting. I often ...
1
vote
1answer
207 views

No function name highlighting in this special case

if I write a function in the following way: int foo(int bar) {} Sublime highlights foocorrectly. However, in this case: int foo (int bar) {} foo loses all highlighting. One of the things I ...
0
votes
1answer
62 views

How to limit keyword highlighting when they appear in variable names

I imported a custom language for PL/SQL into Notepad++, and I'm trying to fine-tune the syntax highlighting. I've enabled code folding for multi-line comments, and changed the background colour on ...
2
votes
1answer
376 views

How to change syntax for a specific folder in Sublime Text 3

I write JS projects in ES5 and ES6. I installed Babel-Sublime for highlighting Babel supported code. Now, I open a .js file written in ES6, goto "View -> syntax -> Open all with current extension as : ...
0
votes
0answers
43 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. ...
2
votes
1answer
47 views

How to make vim truly reopen a file as a cpp file?

I have a file filename.fs with C-like syntax content. Vim opens it as a Forth source, and I use :set syntax=cpp to get the correct highlighting. But later when I try to jump between words I encounter ...
0
votes
1answer
752 views

Plaintext Syntax Highlighting and/or Custom Highlighting Syntax

How can you add custom syntax highlighting for a plaintext file? (for any filetype, not just txt) I leave this question open to any editor for those who know - I'm not picky. If you want me to be ...
2
votes
0answers
435 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 ...
2
votes
1answer
106 views

Vim: Change color of window counter in tab line

How do you change the color of the window counter that VIM displays in the tab bar. I'm familiar with how to set highlighting on groups, what group applies to it? Below is an image of a vim session, ...