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
33 votes
10 answers
27k views

How do I easily highlight the syntax of PHP code in Word?

How do I easily write and syntax-highlighted PHP code (or any others programming language) in a Word 2009 document?
Christian Studer's user avatar
311 votes
3 answers
128k views

Assigning custom extensions to a language's syntax highlighting in Notepad++

In the current version of Notepad++ opening .sql files results in Notepad applying SQL syntax highlighting to it. I'd like Notepad++ to do the same for other extensions as well, is there some setting ...
Sathyajith Bhat's user avatar
  • 61.8k
36 votes
2 answers
32k views

creating a simple vim syntax highlighting

i have a simple sort of a database file which consists only of entries in the following format variable=value i want to create a simple vim syntax highlighting for it and set it for specific file ...
user avatar
35 votes
3 answers
70k views

Syntax highlighting in Microsoft Office Word [duplicate]

Possible Duplicate: How do I easily highlight the syntax of PHP code in Word? I need to paste some code (ANSI C) in Microsoft Office Word, and I need some form of syntax highlighting (instead of ...
Andreas Grech's user avatar
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,238
181 votes
17 answers
92k views

How to syntax highlight via Less

is there a way to syntax highlight a file I see in Less? actually I'm using this command to open an xml file (and sometimes a series of them) less htmleditors/htmleditors_config.xml or less [...
Jesper Rønn-Jensen's user avatar
173 votes
1 answer
118k 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?
fredley's user avatar
  • 3,417
11 votes
1 answer
13k 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 ...
enewe101's user avatar
  • 271
7 votes
3 answers
11k views

How to make Visual Studio 2010 highlight identical, selected words in editor ?

I would like to enable (if it exists) an option in Visual Studio 2010 that would highlight the same identical words to the selected ones. There is a feature like this already implemented e.g. in ...
Patryk's user avatar
  • 1,259
5 votes
2 answers
3k 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 ...
chimericdream's user avatar
1 vote
3 answers
2k views

Custom Vim Highlighting (only works with specific file types)

I have this in my vimrc: "on will override defaults set. Enable will allow you to set defaults." syntax enable ... "attempting to highlight specific keywords so it is easy to see in code." "see ...
sixtyfootersdude's user avatar
14 votes
6 answers
17k views

Custom vim highlighting

I am editing some xml right now and I have been leaving myself some comments of things to come back to. Like this <!-- Question: bla bla --> I am editing with vim right now and I would like ...
sixtyfootersdude's user avatar
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
6 votes
2 answers
14k 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 ...
dotancohen's user avatar
  • 11.5k
5 votes
1 answer
5k views

How to enhance Notepad++ to support Laravel blade syntax highlighting in a PHP file?

After looking online I cannot find any info on enhancing N++ to support syntax highlighting for Laravel's Blade syntax (*.blade.php). Example: demo.blade.php <html> <head> &...
u01jmg3's user avatar
  • 306
4 votes
1 answer
2k views

Vim custom syntax highlighting, include other language syntax in a specified range

VIM 7.3.46 I have a custom syntax file defined for making my notes more readable. I want to define a range that will apply syntax highlighting from an existing syntax file (e.g. php, javascript or ...
Matthew's user avatar
  • 1,318
3 votes
1 answer
2k views

SublimeText 3 Syntax Highlighting Markdown List Asterisk

I installed the packages MarkdownExtended and MonokaiExtended, which gives me an already quite good highlighting for markdown files. However, being a perfectionist, I want to color the asterisks of ...
Zelphir Kaltstahl's user avatar
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
2 votes
1 answer
4k 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 ...
user1068446's user avatar
  • 1,420
1 vote
1 answer
305 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 ...
user216485's user avatar
1 vote
2 answers
3k 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 ...
user2719875's user avatar
1 vote
1 answer
818 views

combining syntax highlighting in notepad++

Is it possible to highlight two (or more) languages simultaneously in notepad++? In this particular case I am working with xml files, but in certain tags in the files I am using using python, JS, and ...
KGS's user avatar
  • 111
1 vote
1 answer
443 views

Adding syntax highlighting for a comment section in Emacs

I have the following (defun add-c-syntax-highlighting () (font-lock-add-keywords nil '( ("\\<\\(\\-+\\)" 1 font-lock-warning-face prepend) ("\\<\\(FIXME\\):" 1 font-lock-warning-...
Sean Allred's user avatar
  • 1,242
0 votes
2 answers
721 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 ...
Vicent's user avatar
  • 231
0 votes
1 answer
1k 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 ...
user216485's user avatar