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

1
vote
1answer
195 views

Removing one type of highlighting in Intellij Idea

How to remove this type of highlighting in Intellij Idea?
2
votes
2answers
1k 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 ...
1
vote
1answer
855 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 Markdown....
1
vote
2answers
1k 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 ...
4
votes
1answer
2k 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
233 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
411 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
1k 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 ...
11
votes
2answers
964 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 ...
6
votes
2answers
1k views

Toggle Syntax highlighting in Notepad++

I am running into speed-issues for big files, whose extension is recognized by Notepad++ which will be syntax-highlighted. Is there a Shortcut or option to assign keys to toggle Syntax-Highlighting in ...
7
votes
3answers
12k 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 ...
9
votes
1answer
627 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
203 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
88 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
532 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
528 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
6k 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%" src="...
0
votes
2answers
664 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 ...
1
vote
1answer
114 views

Gedit gktsourceview3.0 rules - multiple optional suffixes

I'm trying to write a syntax highlighter rule for arm assembly to use in gedit. In arm, every command has some optional suffixes which make it execute conditionally. So obviously I want the command ...
9
votes
1answer
17k views

How can I copy text with syntax-highlighting from Notepad++? [duplicate]

I have an XML snippet in Notepad++ that I would like to share with a co-worker via email. In Notepad++ the syntax highlighting nicely shows off the elements and attributes. Here is a sample picture: ...
4
votes
2answers
2k views

Is it possible to import VIM syntax highlight into Notepad++?

VIM's got a syntax highlight file I would like to have in Notepad++. But VIM uses ".vim" files for syntax highlight definitions, while Notepad++ uses XML. At the "Import" button, you can only specify ...
1
vote
1answer
460 views

How can I force dreamweaver to show CSS syntax highlighting for a PHP file?

this is my first ever question here. Basically I have a dynamic CSS file, meaning the PHP changes the colours of borders and stuff depending on the preferences saved in database. My problem is not ...
1
vote
2answers
2k views

Export File Syntax Highlighting to HTML Using Vim

I wrote a vim syntax highlighting file for a custom file type that I am working and I want to be able to show off my syntax highlighting painlessly by converting my view of the page into an HTML ...
0
votes
2answers
396 views

Editor of txt files for Windows with syntax highlight and foldable/collapsible sections for Markdown [closed]

I asked the same for Notepad++, but in fact I don't mind changing of software. I am interested in managing txt files that contain Markdown. I would like to find an editor of txt files for Windows ...
7
votes
1answer
1k views

Foldable/collapsable notepad++ markdown syntax

I am using Notepad++ for writing texts using Markdown syntax. I know there exists at least one Notepad++ style file to hightlight Markdows texts (see MultiMarkdown in Notepad ++ and https://github....
2
votes
2answers
802 views

how to make '' AND “” syntax highlight strings for python in notepad++?

Currently I have only "doubleQuotes" highlighted but the 'single ones' stay normal. Can someone confirm? Or have a solution how to fix that? In the stylers.xml there is WordsStyle named STRING which ...
0
votes
1answer
301 views

vim mail mode with markdown syntax

I've recently switched to Mutt, and am using vim as my main editor, which is working quite well. My only minor annoyance is that I would like to, in addition to the various highlights and such done my ...
-1
votes
1answer
299 views

How do I enable some type of c++ syntax highlighting for pico in terminal? [duplicate]

I use my MacBook for my CS class, using terminal. I usually connect to a Linux server via ssh. The servers are super laggy at times so I've decided to just work on projects on my local machine and ...
0
votes
1answer
416 views

not found in 'runtimepath': “ftdetect/*.vim”

I tried uninstalling pathogen but now am getting no filetype detection. With this issue I get no filetype detection and thus no syntax support. Starting vim via vim -V1 I get the following message: ...
3
votes
1answer
504 views

How to set syntax highlighting by default when I open *.tt file in Vim?

I use Vim for edit files. When I open file with .tt extension I have to use command set filetype=html in order to set syntax highlighting on for this file. How can I use this command by default ...
7
votes
1answer
1k views

How to have VIM show unclosed parenthesis?

Is there a way that I can change my .vimrc file so that unclosed parenthesis/brackets/braces are highlighted? For instance the following would highlight the parenthesis after the word main: public ...
0
votes
1answer
537 views

vim syntax highlighting: remove the long underline

I am using syntax highlighting scripts found from here. I am using java.vim, javacc.vim, html.vim and c.vim. But I am getting a long line under some keywords like this -- Moreover, those syntax ...
0
votes
1answer
870 views

Syntax Color Highlighting for Bash in Mac Terminal

I am programming some bash scripts in Terminal with VIM, on OSX 10.8, but there is no syntax-highlighting for bash. How can I enable it?
1
vote
2answers
3k views

Syntax Highlight and Autocomplete in Geany for GTK+ (C)

I have just started GTK+ coding in C. I was curious whether i can get syntax highlight and auto-completion working for my GTK code... because as a beginner it would be helpful. I was completely ...
1
vote
0answers
317 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?
0
votes
2answers
581 views

How to change the colour of the WildMenu background?

I want to change the colour of the WildMenu background but I don't know which highlight group I need to specify. WildMenu is the highlighted state of whichever item you have selected, not the ...
5
votes
2answers
467 views

Getting the matlab r2009b multiline comment syntax highlighting in Notepad++

I have Notepad++ version 6.1.8 How can I configure it to highlight the matlab multiline comment %{ ... %} as a comment block? ---EDIT--- I read here that this feature was added to Notepad++ in ...
3
votes
1answer
188 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 ...
0
votes
2answers
329 views

VIM does not detect syntax of .ssh/config

vi ~/.ssh/config :set syn? >syntax=conf When I do: set syn=sshconfig Then the syntax highlighting is as it should be. Why isn't the filetype automatically identified? And how can it be ...
3
votes
2answers
6k views

Syntax highlighting for .tpl file in Aptana Studio 3

I am trying to edit a smarty php template file in Aptana studio 3, and unfortunately it is very very plain, black text on a white background. I would like to activate syntax highlighting for .tpl ...
3
votes
1answer
109 views

Highlight/mark/indicate certain lines in LaTeX in Emacs

I use Emacs to edit LaTeX source. I preface notes which I have made with % as required, so that they are considered as comments. These lines appear in Emacs in a different face. However, when working ...
1
vote
2answers
239 views

Is there some way Linux editors can tell the programming language without the file extension?

I am editing some scripts on Linux without the languages file extensions, and it seems that the editors, namely vi, nano and gedit are not applying syntax highlighting because the filenames don't use ...
1
vote
0answers
666 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 ...
6
votes
3answers
12k views

How do I make vim automatically apply c++ syntax highlight on Arduino files (.ino/.pde)?

How do I make vim automatically apply c++ syntax highlight on Arduino files (.ino/.pde)? Or how does vim syntax highlight know what is a c++ file? And how can I tell him that files that is called ....
3
votes
2answers
2k views

How to print code from GitHub.com with its syntax-highlighting?

How can one print just the syntax highlighted source code from a GitHub source code page (e.g.)? I've tried it with a few browsers (Safari, Firefox, both running on OS X) but I have not succeeded in ...
0
votes
1answer
185 views

Match (highlight) invalid Hungarian notation variables syntax

We follow our own defined coding standard (Hungarian notation) as per our checklist, using Notepad++: Check that all variables are valid according to Hungarian notation identifier naming convention, ...
2
votes
4answers
861 views

Syntax highlighting in vi

I use vi in Linux to edit e.g. JSP files. The code is not syntax highlighted. I think this should be possible to enable, but I haven't found out how. Is this possible to do in vi? update1: # vi --...
7
votes
1answer
8k views

How to get syntax highlighting working in TextMate 2

I just cloned TextMate 2 from GitHub. Followed the instructions in the readme file and everything went smooth with the installation. However, there is no syntax highlighting. No problem – just need ...
2
votes
0answers
208 views

Syntax Highlighting in TextMate2 [duplicate]

Possible Duplicate: How to get syntax highlighting working in TextMate 2 I pulled TextMate2 from GitHub and built it but I can't get the syntax highlighting to work. I've installed the ...
0
votes
2answers
156 views

How do I get syntax elements to be automatically inserted on the next line in vim?

In vim, many syntax elements automatically get inserted on the next line when I start a newline. For example, if I am inside a vim file editing a comment in insert mode, when I go to the next line, I ...