How do you display code snippets in MS Word preserving format and syntax highlighting?

Does anyone know a way to display code in Microsoft Word documents that preserves coloring and formatting? Preferably, the method would also be unobtrusive and easy to update. I have tried to...

Set default syntax to different filetype in Sublime Text 2

How do I set a default filetype for a certain file extension in Sublime Text 2? Specifically I want to have *.cfg files default to having Ini syntax highlighting but I cannot seem to figure out...

Set language for syntax highlighting in Visual Studio Code

Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can get it from here: https://code.visualstudio.com/ I have a textfile (.txt) with CSS in it...

Textarea that can do syntax highlighting on the fly?

I am storing a number of HTML blocks inside a CMS for reasons of easier maintenance. They are represented by <textarea>s. Does anybody know a JavaScript Widget of some sort that can do...

Writing a syntax highlighter

I was hoping to write my own syntax highlighter for a summer project I am thinking of working on but I am not sure how to write my own syntax highlighter. I know that there are bunch of...

Syntax highlighting/colorizing cat

Is there a method to colorize the output of cat, the way grep does. For grep, in most consoles it displays a colored output highlighting the searched keywords. Otherwise, you can force it by...

How do I prevent 'git diff' from using a pager?

Is there a command line switch to pass to git diff and other commands that use the less pager by default? I know I can pipe it to cat, but that removes all the syntax highlighting. I know I can...

How do I set up a syntax highlighter on Blogger?

How do I set up a syntax highlighter on Blogger's new interface? I did try with many options but nothing has worked. Please give any suggestions.

Enable Vim Syntax Highlighting By Default

I know how to turn syntax highlighting on and off in vim by running this in the editor: :syntax on/off But I want syntax highlighting to be enabled by default, so I don't have to turn it on every...

Reference - What does this error mean in PHP?

What is this? This is a number of answers about warnings, errors, and notices you might encounter while programming PHP and have no clue how to fix them. This is also a Community Wiki, so everyone...

syntax highlighter

hello i'm looking a dynamic syntax highlighter for PHP. I'm not looking a highlighter to highlight a code snippet. looking a dynamic highlighter that highlights the code as i type. ** I need this...

Netbeans custom syntax highlighter

Does anyone know if there is any tutorial on creating syntax highlighter for custom language in NetBeans?

Syntax highlighting code with Javascript

What Javascript libraries can you recommend for syntax highlighting <code> blocks in HTML? (One suggestion per answer please).

code syntax highlighter

I'm looking for an auto syntax highlighter. when I specify the starting point and the ending point of the code the syntax highlighter should automatically identify the type of code (e.g. sql,...

Diff syntax highlighting in Github Markdown

I'm writing documents that should explain code in C# using Markdown. I use the ```csharp to get csharp highlighting. I sometimes want to highlight something specific in the code using bold or...

Automatic syntax highlighter

I'm looking for a good all rounded syntax highlighter written in JavaScript that will auto detect the language used and apply proper syntax highlighting. I've found a myriad of them from a simple...

Wrong syntax highlighting for PHP file in PHPStorm

I don't know what happened but syntax highlighting for one php file stopped to working and also icon next to the file has changed. It shows it's text file instead of PHP . How can I fix that ?

How to customise file type to syntax associations in Sublime Text?

I'd like Sublime 2 editor to treat .sbt files (to highlight syntax) as Scala language, same as .scala, but I can't find where to set this up. Do you happen to know?

JavaScript live syntax highlighter

Do you know a good live syntax highlighter written in JavaScript? With live syntax highlighter I mean a WYSIWYG editor that can be included in HTML pages and that is able to highlight the code in...

Syntax highlighting for Jade in Sublime Text 2?

I just started using Sublime Text 2 on Mac. I also just started using Jade for my views in Node.js, and am wondering if there is a way to add syntax highlighting for Jade into Sublime Text 2.

Inserting code in this LaTeX document with indentation

How do I insert code into a LaTeX document? Is there something like: \begin{code}## Heading ## ... \end{code} The only thing that I really need is indentation and a fixed width font. Syntax...

.XHTML Extension & Syntax Highlighter

i tried to use Syntax Highlighter in a XHTML/CSS Template. i noticed if i use the .xhtml extension the Syntax Highlighter fails. if i rename the extension to .html it works. so the question is: -...

jQuery Syntax Highlighter not working

HTML code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...

Syntax Highlighter for WPF

I'm currently looking for a Syntax highlighter for a WPF application. A textbox will be available for the user to type into which would hopefully recognise code and highlight syntax accordingly....

JSFiddle's Syntax Highlighter engine

What is JSFiddle's syntax highlighter engine? I hope to re-use it in my project. I assume it is an open-source component, but I did not find anything about it on their website.

Syntax Highlighter in Haskell

> Possible Duplicate: > How to make a Syntax Highlighting for Java in Haskell? <!-- End of automatically inserted text --> I've asked before how to make a syntax highlighter in Haskell for Java...

Syntax highlighting in vim for python

How do I do I set the syntax highlighting in Vim 7 for python? I would like to set my own colorschemes, and syntax highlighting for a type of code file.

Highlight line in react-syntax-highlighter

Is there a way to highlight a code line inside a react-syntax-highlighter component? You can see the highlight I mean in the image below on line 43.

What is a good syntax highlighter?

I'm looking for a good syntax highlighter for my site that uses PHP & MySQL and Jquery. A syntax highlighter that does not let the code overlap but allows the user to scroll like here on stackoverflow.

Own syntax highlighter

I am about writing own simple syntax highlighter in PHP. I've done basic algorithm based on regular expressions and string replacement, but what I really don't know is way how to disable replacing...