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

4
votes
2answers
1k 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
404 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
902 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
356 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 ...
2
votes
2answers
559 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
229 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
230 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
289 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
367 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
369 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
679 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
2k 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
214 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
414 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 ...
3
votes
2answers
417 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
172 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
234 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
98 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
199 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
562 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 ...
5
votes
3answers
9k 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
1k 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
161 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
652 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
6k 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
144 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 ...
1
vote
1answer
224 views

underline word in vim without changing its color

I'd like use underlined text for some syntactic groups in vim. A simple example would the Search group: :highlight Search guibg=black guifg=yellow gui=underline However, when I do that, all search ...
2
votes
0answers
635 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 ...
1
vote
1answer
448 views

SQL syntax highlighting and code completion in Eclipse PDT

Is there a way of enabling highlighting (and/or code completion for SQL) for SQL syntax in PHP strings variable while developing some PHP works related to SQL using Eclipse PDT?
8
votes
1answer
2k views

Is it possible Notepad++ to change the theme based on current filetype

For example, if I open a text file, notepad++ would open it in 'default' theme. But if I open a php file for instance, it would open it in 'custom_theme1'. I know notepad++ is highly extensible, so I ...
0
votes
0answers
66 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 ...
3
votes
1answer
378 views

Getting rid of random syntax highlighting

I'm having a problem with Eclipse. It randomly highlights code in grey, usually as I type something. It doesn't always appear when I type, and goes away at random times too. It's really annoying. I ...
0
votes
1answer
4k views

How to completely disable syntax higlighting in Notepad++

I'm unable to completely disable syntax highlighting for Java source code files in Notepad++. I've commented out the Java sections in langs.model.xml and stylers.model.xml (even tried deleting those ...
1
vote
1answer
262 views

How to highlight the searched item in Far manager?

Whenever I search an item(F7; Shift+F7) in a file via far manager editor(F4), I have trouble finding my cursor under the found item. It takes time to find it in the lines of code. How can I highlight ...
4
votes
1answer
783 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?
0
votes
1answer
144 views

VIM: Highlight += with a background

I have been coding in PHP lately, which is weakly typed so integers are added with += but strings are concatenated with .=. That means that I wind up using += where I shouldn't and PHP actually then ...
90
votes
1answer
42k views

How do I get Notepad++ to associate a file type with a language? [duplicate]

I have associated .wxs files with Notepad++. So far so good. However, it doesn't remember that it should use XML syntax highlighting. How do I associate a file-type with a Language?
1
vote
1answer
4k views

No syntax highlighting in GVIM on Windows with _vimrc

My GVIM 7.3.46 install on Windows XP Professional SP3 32bit does not perform syntax highlighting if there exists a _vimrc file, at least not PHP and C. Even explicitly mentioning set syntax=php I get ...
0
votes
1answer
635 views

How to set PHP syntax highlighting in GVIM on Windows?

My GVIM 7.3.46 install on Windows XP Professional SP3 32bit does not seem to have PHP syntax highlighting. I have added this file to C:\Documents and Settings\myUsername\vimfiles\syntax and set this ...
3
votes
1answer
1k views

Vim: How to change the current item highlight color when substituting

I have changed my Vim colours so when I do a /search, every match is highlighted in bright yellow. This makes matches much easier to see. However, when I perform a substitution with the confirm flag ...
1
vote
1answer
656 views

Enabling syntax highlighting for LESS in Programmer's Notepad?

When I don't feel like firing up the Visual Studio behemoth, or when I don't have it installed, I always turn to Programmer's Notepad. It's an amazingly light and fast little text editor, with the ...
0
votes
2answers
1k views

Change language colors/syntax highlighting in gedit

When a javascript file is open in gedit, I want comments to be green instead of the default blue. How do I change the colors?
0
votes
0answers
28 views

How to make Visual Studio 2010 Express highlight identical, selected words in editor? [duplicate]

Possible Duplicate: How to make Visual Studio 2010 highlight identical, selected words in editor ? How do I get the Express version to do what's explained here: How to make Visual Studio ...
3
votes
1answer
1k views

Vim Gemfile recognition

When I open a Gemfile in vim, I don't automatically get the colors for the code. I have to do manually :set syntax=ruby. Is there a simple way to automate this ?
5
votes
2answers
6k views

Syntax highlighting in Terminal Mac OS X

How can I highlight different parts in the Mac OS X Terminal app? For example a different color for input and output? Are the pre-defined color themes I can activate/download?
2
votes
1answer
2k views

Geany: Syntax highlighting and autocomplete doesn't work unless I have the header file open in geany

I'm currently writing a program that uses the GTK library. The programs compile and run fine. The problem is - geany seems to not 'know' what structs and methods are in the GTK header file. It ...