Top "Syntax-highlighting" questions

Syntax highlighting is a feature of some text editors that display text (especially source code) in different colors and fonts according to the category of terms.

Syntax highlighting in MS Word document

I want to insert some C/C++ source code into a Microsoft Word document. I have no problem in copying …

c++ c ms-word syntax-highlighting
Text editor/viewer with ANSI codes rendering support for Windows

I need some tool to display text containing ANSI codes correctly on Windows. No full support needed, but at least …

windows editor syntax-highlighting ansi
How to interactively set syntax highlighting in VI editor

Using vi, I want to display files in distinguished colors in unix. If I save a file as .sql or .…

syntax-highlighting vi color-scheme .profile ls-colors
CodeMirror HTML mode not working

I'm trying to style code samples with CodeMirror, but it works partially - it applies the selected theme to the …

javascript syntax-highlighting codemirror
PHP syntax highlighting

I'm searching for a PHP syntax highlighting engine that can be customized (i.e. I can provide my own tokenizers …

php syntax-highlighting
In vim, how do I highlight TODO: and FIXME:?

In vim, FIXME and TODO are highlighted, but I can't get FIXME: and TODO: (note the colon after the keyword) …

vim editor syntax-highlighting todo
Gmail Syntax Highlighter

I sent my code to my friend over Gmail but as you guess, the code is not highlighted in Gmail. …

gmail syntax-highlighting highlighting
Highlight.js in textarea

So i have been struggeling to use highlight.js in a text area since obviously this doesn't work: <!DOCTYPE …

javascript html syntax-highlighting highlight highlight.js
MacVim gets all settings from ~/.vimrc, but not the colors and I have to source it again

I am using the following ~/.vimrc with MacVim 7.4 on MacOS X Mavericks: set guifont=Menlo:h14 set encoding=utf8 set …

vim syntax-highlighting macvim vim-syntax-highlighting
Prism HTML highlighter

I'm using Prism and its working well for CSS: <pre><code class="language-css">p { color: red }&…

html syntax-highlighting prism.js