Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [syntax-highlighting]

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.

2
votes
1answer
113 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
836 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 ...
2
votes
1answer
776 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
7k 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
1k 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
124 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 ...
11
votes
1answer
28k 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: ...
5
votes
2answers
3k 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
494 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 ...
5
votes
2answers
4k 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
517 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 ...
9
votes
1answer
2k 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
1k 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
467 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
547 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
709 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
807 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 ...
8
votes
1answer
2k 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
1k 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
1k 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
4k 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
528 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?
1
vote
2answers
1k 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
509 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
206 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
831 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 set ...
3
votes
2answers
7k 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
134 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
411 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
933 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 ...
10
votes
3answers
18k 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 ....
2
votes
3answers
4k 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
247 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, ...
3
votes
4answers
2k 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 --...
9
votes
1answer
10k 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
221 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 bundles ...
0
votes
2answers
180 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
655 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
757 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
729 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?
11
votes
1answer
3k 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
85 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 ...
4
votes
1answer
2k 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 ...
1
vote
1answer
10k 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
478 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
1k 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
162 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 ...
144
votes
1answer
92k 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?
6
votes
2answers
10k 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
950 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 ...