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
1answer
13 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
10 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
20 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
24 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 ...
1
vote
1answer
13 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 | ...
0
votes
0answers
14 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 its in the same line, but not if its in the next line: vs After reading this question I opened the PHP package ...
1
vote
1answer
47 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
46 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
24 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
16 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
19 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
27 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
18 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
30 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
13 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 ...
0
votes
1answer
41 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
1answer
42 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
39 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
33 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
22 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 ...
1
vote
0answers
49 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
27 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
37 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
77 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
107 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 ...
0
votes
0answers
24 views

Printing colorful syntax highlighting to paper

I want to print out some code on paper including syntax highlighting. After some research, I found out, that I could do this in the command line with pygments and enscript, but don't know how to ...
1
vote
1answer
34 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, ...
2
votes
0answers
12 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 ...
1
vote
1answer
71 views

How do I change the hilighted length of git commit-messages in vim?

I'm of the opinion that the orthodox 50-character limit on git commit messages is absolutely ridiculous. (Primarily because I think using an 80-character wide Terminal in 2015 is equally ridiculous.) ...
1
vote
2answers
48 views

how to set .vim color scheme to vim editor OS X

I downloaded some .vim color scheme files in github and moved them by sudo mv ~.vim /usr/share/vim/vim73/colors then I wrote colorscheme ~.vim in vimrc. The original schemes already existed, are ...
0
votes
1answer
139 views

Multiple color schemes in a notepad++ text document containing multiple languages

I understand how to associate a color scheme to a certain file type, but i often run into the case where I have a shell script that is a wrapper for an SQL script. My question is can you select ...
0
votes
1answer
56 views

Vim `cpp` Syntax highlighter prematurely ends macros mid-word

FINAL EDIT: I have "manually migrated" this question to the new Vi(m) SE site: http://vi.stackexchange.com/q/2219/1060 My Vim syntax highlighter for ft=cpp is prematurely ending some macros ...
0
votes
1answer
39 views

How to configure Sublime Text 2?

So I want my Sublime Text 2 to look like this. To that end, I installed the corresponding theme and font (DejaVuSansMono). But no matter what I do, a/ the font doesn't change to what I want it to ...
0
votes
0answers
11 views

Syntax highlighting of variable interpolation in BBEdit

I'm writing PHP in BBEdit. How can I highlight variables inside strings differently from the rest of the string? For example, in "hello, $name", the $name part should have a different highlight ...
0
votes
1answer
45 views

How to permanently correct syntax highlighting after “?>”?

In Vim, I have a PHP script that contains a line similar to the following: $return = "<?xml attributes=\"values\" ?>"; Normally, the ?> characters will close an opening <?php tag, ...
0
votes
1answer
40 views

Syntax Highlighting for Column-based Language

I am working with files that have a specific character layout, i.e. bytes 1-10 bytes11-20 FirstName LastName FirstName LastName Is there anyway to specify a language that highlights or ...
-1
votes
1answer
29 views

Syntax highlight in SublimeText 2

How do I get Sublime Text 2 to highlight syntax of a language? I tried everything I could find but none of that bore any fruit. Thanks
1
vote
1answer
74 views

Turning on color syntax highlighting in Emacs

I recently installed Emacs 24.3.93.1 on Cygwin. When I first opened code in it, I got a sort of black-and-white syntax highlighting - keywords were white, function names in declarations were black on ...
2
votes
2answers
815 views

creating a simple vim syntax highlighting

i have a simple sort of a database file which consists only of entries in the following format variable=value i want to create a simple vim syntax highlighting for it and set it for specific ...
0
votes
1answer
826 views

How to syntax highlight python scripts in PHP storm

I tried installing this script but then got this error message: I'm hoping for an answer that's similar to this one but for python instead of ruby.
1
vote
1answer
129 views

Notepad++ syntax highlighting sql within php file

I love Notepad++, partly because of its syntax highlighting: in a .php file, it will highlight <script> blocks as javascript, <style> blocks as css and <?php blocks as php. Ideally ...
0
votes
1answer
28 views

Vim syntax highlighting problems with Haskell

Normally vim is very good with syntax highlighting, it hasn't given me any problems with HTML, Javascript, Python, etc., but now I'm using Haskell and it doesn't want to cooperate. Here's what it ...
0
votes
1answer
119 views

How To Enable Syntax Highlighting for Nano In Windows?

I am a huge fan of the nano editor, but I can't get the syntax highlighting to work in the windows version. Is it possible to have syntax highlighting in windows?
0
votes
1answer
54 views

Defining faces for syntax highlighting in Emacs

This is a follow-up question to Adding syntax highlighting for a comment section in Emacs. I have the following face definition adapted from the definition of font-lock-warning-face in font-lock.el: ...
0
votes
1answer
86 views

Adding syntax highlighting for a comment section in Emacs

I have the following (defun add-c-syntax-highlighting () (font-lock-add-keywords nil '( ("\\<\\(\\-+\\)" 1 font-lock-warning-face prepend) ("\\<\\(FIXME\\):" 1 ...
0
votes
0answers
68 views

Aptana Studio Custom File Extension Coloring

If I have a custom file extension, say '.cia' or '.fbi', how then can I open it up in Aptana with a syntax coloring scheme that I create? I've looked all over Aptana and I can add the file extension ...
1
vote
1answer
36 views

How can I properly interpret M4's $# variable without starting comment syntax in emacs?

I have the following M4 macro definition: define(`printlist',`$1`'ifelse(`$#',1,,`printlist(shift($@))')') # does begin a comment in M4 syntax, but only when it isn't preceded by a $: $# is the ...
2
votes
2answers
36 views

syntax on, syntax enable, vim

I am trying to find out how to make vim to remember the syntax enable command so I don't have to type it every time I open a new .c file. I bet there is a way, I tried looking at the documentation for ...
0
votes
1answer
504 views

Installing vim syntax highlighting for C++11\14

I have a fresh installation of Manjaro linux 0.8.10 with vim 7.4 installed, and I'm unsuccessfully trying to enable syntax highlighting for c++11/14 using the script by Michael Small (which I've been ...
0
votes
0answers
81 views

Cygwin nano syntax highlighting

I want to have basic syntax highlighting in a cygwin implementation of nano. This comment confirms for me that it's possible, but I can't find any information on how to actually make it happen.