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
7 views

Can I use Doxymacs to highlight its comments differently?

Is there a way to change the face of comment text when it's inside of Doxygen-active comment syntax? /** * long comment */ /// short comment For the second one (since it's a little easier), I've ...
0
votes
1answer
32 views

How to stop Vim markdown syntax from highlighting as italic asterisks used to denote bold?

Using Vim 7.4 on Windows in ConEmu (though I have seen the same thing on other platforms/setups), I notice that the syntax highlighting is matching the beginning and ending double-asterisks as italic ...
0
votes
1answer
40 views

The Vim documentation illustrates a “wrong way” to add comments to HTML. What's wrong with it?

The "syntax.txt" chapter in the official Vim documentation says: HTML comments are rather special (see an HTML reference document for the details), and the syntax coloring scheme will highlight all ...
0
votes
0answers
19 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 ...
0
votes
0answers
10 views

How can I trick nxml-mode into accepting <<…>> as comment syntax?

I'm using org-babel to create an XSL template and would like to use the tangling capabilities. Since as far as I'm aware <<…>> isn't valid XML anyway, I would like to add it as comment ...
0
votes
0answers
66 views

User Defined Language Notepad++

I'm stuck in defining my language in Notepad++ for syntax-highlighting. I would like to define different colors for different output files that i get from a software. The usual string is: @--MESSAGE ...
0
votes
0answers
6 views

getting yml syntax highlighting in textmate2

I ignored the prompt of textmate2 to to associate yml files with yml by mistake, and instead chose .txt. the result is no syntax highlighting and i can't figure out how to fix it. Installing and ...
1
vote
2answers
38 views

Edit vim syntax highlighting options for a specific file type

When I edit a .markdown file in vim, the highlighting looks like this: I am using a light colour scheme and the builtin vim .markdown settings (no plugins - I found them to be worse). The problem ...
0
votes
1answer
33 views

Highlight endif in vim

I'm creating a colorscheme for vim and want to give the ifand endif distinct colors. I followed the tutorial on vimcasts and have the following file "set 256 colors for gnome-terminal if $COLORTERM ...
2
votes
0answers
112 views

Sublime Text 3 - Detect syntax based on file header

How would I get Sublime Text 3 to recognize file type (i.e. set syntax and build system) based on a files header? For example: If the first line of a file was <!DOCTYPE html>, it would be ...
1
vote
0answers
25 views

Slickedit: How can I set the language of the currently open file if it has no extension?

I'm working on a file without an extension in Slickedit (over Linux). Because it has no extension, Slickedit doesn't identify what language the file is written in. Is there a way to manually define ...
0
votes
0answers
37 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 ...
0
votes
1answer
54 views

Text editor for exporting syntax-highlighted code in html format

Long time along I used to export syntax-highlighted code from a certain text editor on the linux platform. The idea is that it maps all the syntax-highlighting, like color, boldness, italics, indent, ...
0
votes
1answer
150 views

Why none of the rainbow parentheses plugins work with filetype=php?

I've tried a dozen rainbow plugins. They all work, until i open a php file or set filetype=php. Then I get parentheses with the same color in that buffer. what is the reason for this? I tried ...
1
vote
1answer
36 views

Syntax highlighting for emails

I'm once in a while sending raw code to customers. Is there a tool which adds (inline) styles to code, so that it is easier to read for my customers? A tool which works for gmail and other web-based ...
0
votes
1answer
39 views

In Vim, why does searching “/A\n\zsB” work, but not syntax highlighting “:syn match Statement 'A\n\zsB'”?

Assume the following text file: A B Or in other words, a file containing only the string A\nB. Let's see if I can match any B preceded by A and a newline. Simple enough. I can do this sucessfully ...
0
votes
1answer
330 views

objective-c syntax highlighting for vim

I would like to have an excellent syntax highliter for obj-c that matches or beats the one in my xcode.. I've installed base16 through yadr, and i've also installed cocoa.vim to have better syntax ...
0
votes
0answers
69 views

Komodo Edit is not respecting indentation rules with new lang syntax

I added my language syntax using the template plugin functionality in Komodo Edit. It seems to work. I get code recognition, highlighting etc except one important thing. KomodoEdit always uses spaces ...
1
vote
1answer
42 views

MS Word custom style displays white separator lines

I am trying to setup a custom style within MS Word 2013 that would display code snippets. So far everything is alright, except there are white separator lines on every 2nd line. I have searched quite ...
0
votes
0answers
39 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
1answer
339 views

How do I disable syntax checking for a specific file extension?

I recently installed Dreamweaver CS6, and I'm having a problem when modifying a JSON file. No matter what I type, even the simplest, clearly valid JSON string, it keeps saying there is a syntax error ...
0
votes
1answer
76 views

VIM - How to change color of if, else, endif, for and endfor statements

I just Django html so I have the normal html tags as well as the if, else, endif, for and endfor statements. I use a customized version of the colorscheme called slate. There is a line in the ...
0
votes
1answer
19 views

VIM - in colorscheme file, how to have different colours depending on what the syntax is?

I use VIM and I want I use my own customized slate colorscheme (slate-mine.vim). In slate-mine.vim, is there a way for me to do something like if syntax == django html then apply the following ...
1
vote
1answer
25 views

Editing the htmldjango.vim file

I like htmldjango.vim syntax highlighting except for a few things. 1) It highlights all variables (whatever starts with {{ or {% and ends with }} or %}) white and gives it a red font. I want all ...
0
votes
2answers
25 views

creating a basic html vim syntax file

I use vim and type a lot of Django html code and I don't like the htmldjango.vim or html.vim highlighting syntax. I decided I should just create my own basic syntax highlighting for Django html. All I ...
0
votes
1answer
122 views

Intellij 12+: is there a way to set default code style?

I work with a lot of javascript files that are not suffixed by ".js", so Intellij renders no code style at all (no coloration or auto-complete) unless I put <script> tags around the code (which ...
1
vote
1answer
78 views

vim - how to treat three quotations in a row as a comment rather than a string

I use python and in python, three quotation marks in a row """ or ''' signify a block-comment, and a normal comment is just a hashtag. (#) I want comments to be colored grey and strings to be ...
0
votes
0answers
45 views

How to make Sublime Text highlight “$this->” for PHP?

How do I make Sublime Text highlight $this-> for PHP files?
2
votes
1answer
133 views

Syntax Highlighting in Adobe InDesign

Is there a way to get syntax highlighting for Ruby into InDesign? I found a few examples for how this might work with GREP and HTML, but for any other language you had to define every element yourself ...
1
vote
0answers
52 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
1answer
98 views

*live* vim syntax highlighting on stdout?

I want to have some program's output colorized as it apperas on terminal. I know that utility named highlight does the this. But: it has a limited set of built-in language support, and I want ...
1
vote
1answer
50 views

Removing one type of highlighting in Intellij Idea

How to remove this type of highlighting in Intellij Idea?
0
votes
1answer
212 views

Automatically use specific language in Notepad++ for files with no extension

Specifically, I want NPP to remember to use Ruby syntax highlighting whenever I open a Vagrantfile. These don't have an extension, and I tried adding "Vagrantfile" to the user extensions in the style ...
0
votes
1answer
412 views

Better markdown syntax highlighting in sublime 2

The markdown syntax highlighting in sublime text is fairly mediocre. Even when I install the markdown extended package it's still mostly displayed as plain white text. When I search ...
1
vote
2answers
394 views

gvim how to change exisitng colorscheme's syntax colors?

I use gvim and the color scheme which I use is called 'slate'. I mostly just code in python, html and css and I like slate's syntax coloring except for a few syntax colors. Is it possible for me to ...
2
votes
1answer
330 views

how to turn off gvim error highlighting?

I use gvim as my text editor and the syntax coloring is great except it highlights "errors" and gives it a white background with red font. How do I turn off error highlighting? I find it annoying and ...
0
votes
1answer
97 views

gvim how to remove word highlighting

Okay so I am using the 'slate' color scheme in gvim and it is really great and I like it a lot except recently I have starting working with html and css files and for some reason, it starts ...
0
votes
1answer
188 views

SecureCRT and Nice PHP/JS Syntax Highlighting: How To Configure?

I'm running SecureCRT using Windows 7. After googling a bit the VanDyke results came up, but I want to get it so instead of just a black background with all green text (sure it's better than the ...
1
vote
0answers
650 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 ...
9
votes
2answers
287 views

How to interrupt emacs when control-g does not work in very large files?

I've run into some kind of O(n^2) or worse behavior when viewing very large (e.g. 128MB) files in Emacs and jumping to the end of the file. I think it may have to do with my coloring algorithm to ...
3
votes
2answers
149 views

Toggle Syntaxhighlighting in Notepad++

I am running into speed-issues for big files, whose extension is recognized by Notepad++ and syntax-highlighted. Is there a Shortcut or option to assign keys to toggle Syntax-Highlighting in ...
6
votes
1answer
7k views

The best syntax highlight for JSON data file in Notepad++

Currently my latest version of Notepad++ displays .json file as below snaphots which looks so dumped. Do you have any sysntax highlight set recommended for json data file? In the photo, @1: key, @2: ...
4
votes
2answers
3k views

Better syntax highlighting for Java in Vim?

I've found Vim to have fantastic syntax highlighting with my preferred color schemes for Ruby and Python, but whenever I need to write Java code, it's like I haven't even turned on highlighting in the ...
2
votes
0answers
139 views

Is there any way to change Bitbucket code highlighting

I like the code coloring in Github so that keywords gets highlighted when view source code. But in Bitbucket i see very light color and almost no diff between codes , keywords etc. very bad color ...
1
vote
0answers
97 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 ...
2
votes
1answer
64 views

Emacs syntax highlighting for making a term with boolean operators more readable?

I have a long string with boolean logic like ("Mercedes Benz" or "Audi" not "Volkswagen" not "truck") but much longer and more complex (with several parenthesis etc.) I wonder how I can make this ...
1
vote
0answers
248 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
1answer
281 views

How to set JS-Syntax for .js.php-Extension in Sublime Text 2?

I have several js-Files (and css-Files), which need php-Commands. So I changed the extension to .js.php or .css.php But when I open the file in Sublime Text 2, I always have to change the syntax ...
0
votes
2answers
2k views

How to properly Show Code Snippets in MS Word?

I want to show code snippets with the original formatted styles in Microsoft Word document, is there anyway to do this? The code is: <iframe class="codetidy" type="text/html" width="100%" ...
0
votes
2answers
131 views

Where can I find geany's default global configuration files?

I was trying to install the Vibrant Ink Geany theme, and ended up with it not working. As far as I understand, the filetype defintions weren't working or something. Screenshot. I messed around with a ...