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.

Filter by
Sorted by
Tagged with
7 votes
1 answer
2k views

How do you define a new language specification for color syntax highlighting in Xcode 4?

For Xcode 3 there is plenty of information available about how to define a syntax highlighting specification for a language not already supported in Xcode. But there doesn't seem to be any ...
thenry's user avatar
  • 71
4 votes
4 answers
3k views

In Vim how I can set a local match only for a specific filetype?

In Vim I can set local configuration as: setlocal number How I can set a local match only for a specific filetype? I use this: autocmd! BufEnter *.py,.vimrc,*.sh,*.c* :match ColorColumn /\%>...
juanpablo's user avatar
  • 7,184
10 votes
1 answer
5k views

Modifying a gedit syntax highlighting file

I am trying to change a highlighting file from Gedit. I have modified the file /usr/share/gtksourceview-3.0/language-specs/fortran.lang because I want to change the cases in which the editor takes a ...
oscar's user avatar
  • 103
3 votes
2 answers
3k views

How do I get Sublime Text 2 to properly color SQL even if its inside a php string?

I have the following code in a php page: <?php $query = " SELECT data FROM table WHERE param = 1 "; Since this sql is wrapped inside quotations in a php document, everything shows ...
zechdc's user avatar
  • 1,287
2 votes
0 answers
138 views

Does MSDN has syntax highligthing?

Reading the MSDN documentation in a web browser is a real pain because the absence of syntax highlighting. In those web pages, code spinets are surrounded by a div with class="codeSnippetContainerCode"...
Guillaume Massé's user avatar
1 vote
2 answers
2k views

Nano syntax highlighting for Debian

I am running Debian and I would like to turn on syntax highlighting for nano. My system has predefined syntax definitions... standage@idebian:~$ ls /usr/share/nano/ asm.nanorc c.nanorc ...
Daniel Standage's user avatar
5 votes
3 answers
4k views

LESS syntax highlighting in Geany

I'm using LESS CSS (PHP version). I'm also using Geany in Linux. Is there a LESS syntax file for Geany out there, or how I can go about editing the CSS one to suit LESS?
Bojangles's user avatar
  • 555
0 votes
2 answers
70 views

Forcing highlighter to html in VI when it fails to recognize an input file

I'm having trouble editing HTML in an older version of VI(M). VIM - Vi IMproved 6.3 (2004 June 7, compiled [...] 2005). When reading .sh shell scripts there is no problem, though. It doesn't ...
Vlueboy's user avatar
  • 723
5 votes
1 answer
7k views

How can I add color highlighting for PHP functions?

I've recently begun using Notepad++, and have found a part of its styling functionality that confuses me. I'm currently attempting to color all of PHP's defined functions (such as count(), strlen(), ...
Jeff Gortmaker's user avatar
4 votes
2 answers
231 views

Getting vi/vim syntax highlighting used by certain user

At work most web-development we do, is done in vi/vim, on a debian-server. Sometimes we have to alter some files as root, and the syntax-highlighting-model of that user (root) is absolutely awesome. ...
Marcus Hansson's user avatar
1 vote
2 answers
2k views

PowerShell ISE as C editor (like gEdit with embedded terminal)?

I've just discovered PowerShell in Windows 7 and realised that it comes with an ISE too. In Linux, I use gEdit with an embedded terminal when writing C programs and I've been looking for an ...
Griffin's user avatar
  • 393
0 votes
1 answer
280 views

ANSI Colors & Syntax

Is there a mapping of ANSI colors to their syntax in a given shell? For example, in BASH, Blue seems to be Folders and Green seems to be executable files. Does a list exist for what ANSI colors mean ...
Patrick Perini's user avatar
2 votes
1 answer
399 views

Creating Custom Code Syntax Highlighting Color Themes

I've come across a couple of websites that have been very helpful in allowing people to create custom color themes for their favorite IDE's. Visual Studio themes Eclipse themes Is there a similar ...
E-rich's user avatar
  • 425
0 votes
1 answer
338 views

TextMate indentation "navigation" as in Notepad++

I want to duplicate the function from Notepad++ where you can easily view your indentation in your code. I want the dotted border that is lined within the indent. Is there a plugin for this? Or can ...
Mattias Alfborger's user avatar
67 votes
3 answers
55k views

Is there any way to get bash to have syntax highlighting like fish?

In the fish shell, the actual command line is syntax highlighted: Is there any way to get this same behavior in bash? There is something just like this but for zsh, not bash. Is it possible that ...
Wuffers's user avatar
  • 19.3k
1 vote
1 answer
4k views

How can I add HTML5 support to Vim without plugins?

I'm using OS X, but I don't think that matters. By default, both MacVim and [terminal] Vim handle auto-indentation of HTML 4.0 elements, but any HTML5 elements, such as <header> and <footer&...
Closure Cowboy's user avatar
2 votes
1 answer
970 views

emacs smart html syntax highlighting

Is there a syntax highlighting mode for xml/html which supports highilghting of markup associated with given (just like for parentheses)? For example if I select 'div' markup - this 'div' and ...
ninjaaa's user avatar
  • 191
2 votes
3 answers
6k views

How to change the default highlight color of a property in the Aptana-pydev?

The default text highlighting and default font colors that came with Aptana (Eclipse) seems to be a little wacky, anyone have any idea how to fix this? This example isn't the only place where stuff ...
Chris Dutrow's user avatar
1 vote
1 answer
2k views

Vim on Solaris. Coloured syntax highlighting?

I spend a lot of my time in vim, usually on some sort of debian/ubuntu OS. I've recently started playing with a Solaris 11 Express server and wondered if it's possible to enable coloured syntax-...
growse's user avatar
  • 2,661
2 votes
1 answer
747 views

Which Mac/PC text editing programs have YAML syntax support?

I write/edit a lot of YAML syntax files, and syntax highlighting really helps determine where I have syntax errors in a YAML file. Recently I've added two contributors who are not too familiar with ...
Kevin Burke's user avatar
8 votes
1 answer
13k views

How do I create my custom "User-Defined" language in Notepad++?

In Notepad++ there is a menu option: Language->"User-Defined". How do I customize that? What are capabilities of such option? Can I highlight date/time? Can I highlight 21-29th symbols in the lines?...
ViliusK's user avatar
  • 1,770
3 votes
2 answers
4k views

eclipse .conf files coloring syntax (highlighting)

I haven't found an easy way to add a simple syntax to Eclipse, regarding conf files. I took a look at xText, but seems really complex for something really simple. I basically want to color the lines ...
Prozaker's user avatar
  • 905
2 votes
1 answer
2k views

How let Scite support a custom syntax highlight template?

I need to have a syntax highlighter for a language of mine. I really like Scite, so I was wondering how to support a custom syntax with it.
Andry's user avatar
  • 1,544
2 votes
1 answer
14k views

How can highlight all the automatic-fields or only references in Microsoft Word 2010+?

Is there any way that I can highlight, to quickly check, all the internal references in a word document? The current version that I'm working with is Office 2010 on Windows or Office 2011 on a Mac ...
Lipis's user avatar
  • 184
15 votes
2 answers
9k views

Is there a way to have syntax highlighting or code blocks with Evernote?

How do you take notes on code snippets and or command line sequences in Evernote (Mac or PC)? Is there a way to have code blocks like the 'Code Sample' buttons here: example Any way to have colored ...
evan's user avatar
  • 363
20 votes
3 answers
14k views

Different language syntax highlighting within same file

I'm trying to get simple syntax highlighting working within a file. Here's the setup. I have an index.php file, which Notepad++ correctly highlights any PHP code between the <? and ?> tags. ...
dmackerman's user avatar
0 votes
2 answers
1k views

How do I get Dreamweaver to deploy syntax highlighting for full script CFC's?

Is there a way to get Dreamweaver CS4 to use syntax highlighting when writing full script CFCs? If the document type is .cfc and they syntax is fullscript, there is no syntax highlighting; the code ...
Mohamad's user avatar
  • 125
2 votes
1 answer
528 views

What is Christmas Tree Mode in Emacs?

Reading python-mode mailing lists, I've seen something I haven't heard of in a posting: [...] I can't get all syntax highlighting to work, most particular variable highlighting. I have christmas ...
Nikolai Prokoschenko's user avatar
9 votes
2 answers
2k views

Multiple foldmethods in vim

I use the folding option of vim quite a lot, and have usually set foldmethod to syntax. Recently I discovered that it is possible to add custom folds, such that I can put whole blocks in /*{{{*/ and /*...
Bjarke Freund-Hansen's user avatar
5 votes
2 answers
7k views

LESS and CSS3 syntax highlighting

I found this post on SU, but it doesn't seem to address my needs exactly, so I'll ask a similar question. I normally use PSPad, and I'm also not too scared of Notepad++. They are both good editors, ...
mingos's user avatar
  • 253
6 votes
2 answers
6k views

Vim syntax highlighting disappeared for text files (.txt)

My to-do list is a plain text .txt file that I load in Vim. In .txt files Vim has always coloured hash marks (#) and the text following them on the same line, which I use to mark out urgent to-do ...
Vim user's user avatar
2 votes
2 answers
1k views

Enable syntax highlighting on msysgit's version of vim?

I was wondering if there was a way to enable syntax highlighting on msysgit's "built in" vim. I'm specifically trying to get ruby highlighting to work, but nothing I have tried has enabled it. I'm ...
enriquein's user avatar
  • 171
22 votes
2 answers
8k views

Convert HTML to image

Background Batch convert various syntax-highlighted source files (C, SQL, Java, PHP, batch, bash) into high-resolution images (600dpi), suitable for an eBook and printed book. Failed Solutions A ...
Dave Jarvis's user avatar
  • 3,248
8 votes
1 answer
3k views

How can I configure syntax highlighting for a custom language in vim?

We use our own little language for small tasks, but we do not have Vim highlighting support for it.
Lazer's user avatar
  • 17.7k
2 votes
1 answer
1k views

How can I disable color highlighting and marks of versioning in NetBeans?

How can I disable color highlighting and marks of versioning in NetBeans? (in my case, mercurial) PS: Now that I see, highlighting is on html tag attribute values, and doesn't respond to versioning, ...
Petruza's user avatar
  • 3,873
23 votes
5 answers
10k views

How can I highlight XML on the command line?

How can I highlight XML from stdin (e.g. piped from xmllint --format) to stdout? I know how to get highlighting working in nano and view, but is there something that just outputs to stdout and exits? ...
Sietse's user avatar
  • 564
21 votes
4 answers
9k views

How do I enable syntax highlighting for .bash_aliases in vim?

I'm working on reorganizing my .bashrc. I moved my aliases to .bash_aliases (which is sourced by .bashrc, but I can't figure out how to enable syntax highlighting for this file. vim seems unable to ...
Matthew's user avatar
  • 14.8k
3 votes
3 answers
3k views

Word Syntax Highlighting

I'm writing an article and I would to maintain notepad++ syntax highlight when I paste a code block into word. The code is all in SQL, and I would very much like to the way it is formatted. Also, ...
George Silva's user avatar
4 votes
2 answers
632 views

How to utilize vim's syntax color to replace the `highlight' utility?

I feel that the `highlight' utility doesn't support as many file types as vim does, and the project isn't very active. When the file is gzipped, highlight doesn't recognize it at all. But in ...
Lenik's user avatar
  • 18.3k
1 vote
1 answer
142 views

How do I highlight the whole text in a line that triggers syn-containedin?

Suppose I have these Vim definitions: syn match tasktag "\(\s\)\@<=@[a-zA-Z0-9_]\+" syn match taskdone "\<[Dd]one\>" containedin=tasktag How do I specify taskdone to highlight the entire ...
wilhelmtell's user avatar
7 votes
3 answers
5k views

Highlighting command line in vim

Is it possible to change the coloring for the command line in vim? I realize that may be somewhat ambiguously stated, so I have some things that should clear it up a little. This image illustrates ...
user12764's user avatar
  • 271
1 vote
2 answers
75 views

$('<tag />') breaks my highlighting

But $('<tag></tag>') doesn't. The problem seems to come with the '/>' thing. This is happening in gedit, aptana and scribes.
Erik Escobedo's user avatar
-1 votes
1 answer
472 views

I can't get Scribes recognize my .html.erb files

That's it. Scribes just doesn't highlight or load templates for my Ruby on Rails templates. Any of you had better luck?
Erik Escobedo's user avatar
9 votes
3 answers
8k views

How to I use Textmate color themes with vim?

I have a textmate color theme I really like this, But I am a hardcore vim user. Is there an easy (painless) way for me to use this color scheme with vim?
machinaut's user avatar
  • 193
1 vote
1 answer
845 views

Problem with making custom syntax highlighting in TextMate. Help!

I am trying to highlight a custom language in TextMate. However, the following definition does not highlight PHP insertions: { scopeName = 'source.serpent'; fileTypes = ( 'serpent' ); ...
2 votes
2 answers
957 views

google chrome: any extensions for code syntax highlighting on some website?

any extensions for code syntax highlighting on some website?
pat.inside's user avatar
5 votes
3 answers
12k views

Syntax Highlighting in Terminal for Python?

Is there a way to turn on python syntax highlighting for Terminal.app on Mac OS X?
user avatar
0 votes
8 answers
357 views

Good text editor for OS X? [duplicate]

Possible Duplicates: Mac Text Editor (with function list) Text editor for Mac OS X I'm considering getting a Mac. I want to make sure I'll be able to get a good text editor for it. I'm ...
2 votes
1 answer
4k views

How to make syntax highlighting for source code in Outlook 2007 email? [duplicate]

Possible Duplicates: Syntax highlighting in Microsoft Office Word How do I easily highlight the syntax of PHP code in Word? When I send email to someone with source snippet then how to format ...
metal gear solid's user avatar
0 votes
1 answer
2k views

Vim: Custom Folding function done, custom highlighting required

I have defined a function in vim to properly indent folds. Ie so they look like this: Unfolded this is text also text indented text indented text not indented text folded with default ...
sixtyfootersdude's user avatar

1
3 4 5
6
7