syntax-highlighting

Gmail Syntax Highlighter

Hi all, I sent my code to my friend over Gmail but as you guess, the code is not highlighted in Gmail. Is there solution to highlight code that is sent over Gmail? ...

PHP script to Generate Javascript & Highlighting in Zend Studio

I have a PHP script that I am using to generate some rather complicated javascript for a web application. It is necessary that this script be generated by PHP for scalability reasons. Here is my problem: if I name the file myscript.js, then I have to use htaccess to tell the webserver to pipe this through PHP (not preferrable) if I na...

I can't find the typo in my syntaxhighlighter code. Can you spot it?

On my Blogger blog I have the following code exactly, but it doesn't work. Can anyone tell me what is wrong? <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeRDark.css' rel='stylesheet' type='text/css'/> <script type='text/javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.config.clip...

To change TYPE to nothing from conf in Vim

My syntax -highlighting is broken for a file which Type is conf as follows: File where the syntax highlighting does not work The syntax highlighting works for all other files with the extension .markdown. However, the only difference between these files is that the other files' type is nothing, while that of a file, which has bug, it...

Programming Font and Syntax Highlighting Test/Sample Text

What is the best text-block to use to test out programming fonts and syntax highlighting? ...

Best way to code Visual Studio like code app

I am needing to make a program that can do syntax highlighting and the drop down autocomplete similar to visual studio. Id also like it to be able to collapse and expand code segments if possible. I tried coding this before using rich text editor and using reg expressions to apply the coloring. This was very processor intensive and cau...

Finding beginning and end quotations

I'm starting to write a code syntax highlighter in JavaScript, and I want to highlight text that is in quotes (both "s and 's) in a certain color. I need it be able to not be messed up by one of one type of quote being in the middle of a pair of the other quotes as well, but i'm really not sure where to even start. I'm not sure how I sho...

braces and operators coloring in vim for c++?

Hello. I want to customize a syntax coloring in vim for c++. But, unfortunately, i still can't find a correct name for braces (){}[] and operators +-/*% for c/c++/objc/objcpp. Any vim guru whi can suggest what name i must 'hi' in order to set color for items mentioned? ...

Plugins/Gems/Libraries to get syntax highlighting for code in the browser?

I have a simple idea for a small web application that I'd like to build out, but it requires syntax highlighting in the same manner that Pastie does. I was wondering if anybody knew what library (jQuery, Prototype, any) was used in the frontend, and/or which (if any) plugins/gems were used in the backend. For reference, you can find an...

How to override default syntax highlight in vim?

Hello. In VIM, i need to perform a simple task - highlight "(" and ")". I can do this easily by issuing two commands: :syn match really_unique_name display "[()]" :hi really_unique_name guifg=#FF0000 But if i add same commands (without ':' of course) to empty .vimrc and restart VIM - "(" and ")" are not highlighted anymore in .cpp fi...

Flex/Actionscript code highlighter

On an opensource project that im working on we need to do some codehighlighting in a flexapplication. So my question is whether there exist such a project already or if know of a good library suitable for porting to action script. Or should we perhaps generate html that we display in text field? ...

OpenOffice syntax highlighting

I have some big documentation to do that will contain pieces of code I'd like to give the conventional "coding language" syntax highlighting. I've searched the styles feature to do such a thing, but there is no way to do that (in fact I could only found a forum where people were fighting about adding this feature or not, but this is not ...

How do I add syntax highlighting to a WordPress blog hosted on WordPress.com?

I'd like to have a good syntax highlighter for my WordPress blog. What options do I have available? I often see one which has well-colored syntax highlighting and options to copy to the clipboard. Does anyone have an idea what tool this is? ...

Matrix multiplication - view/projection, world/projection, etc

In HLSL there's a lot of matrix multiplication and while I understand how and where to use them I'm not sure about how they are derived or what their actual goals are. So I was wondering if there was a resource online that explains this, I'm particularly curious about what is the purpose behind multiplying a world matrix by a view matri...

WPF: fast way to apply formatting to RichTextBox

I'm trying to display basic syntax highlighting in a WPF RichTextBox. It mostly works, but the rendering performance is awful. First I naively tried: /// <summary> /// Main event handler for syntax highlighting. /// </summary> private void XmlChanged(object sender, TextChangedEventArgs e) { VM.Dirty = true; if (VM.Pretty) ...

Very strange behavior with Vim syntax and filetype detection

I have a file, called WrongFileTypeDetection.R, containing the following text: # This file is sometimes wrongly detected as a conf file I also have two versions of _vimrc, that I would have thought to be absolutely identical. However, when I use the first version, the above file is incorrectly detected as a "conf" file, even though I...

Visial Studio Syntax Highlighting Keyword List

I am working on customizing a highlighter to be used on my web site. I want the highlighter displays the code in the same way as Visual Studio. I ran into a problem - Visual C++ displays classes from MFC and C# displays .net classes in color. Here the question is - is possible to get a list of these tokens (both C++ and C#)? ...

Is there an online source highlighter?

I have a free Wordpress account, and this means I'm not able to install plugins for syntax highlighting. I'm doing all my source highlighting with pygments offline. This generates HTML code with inline styles ( so that I don't depend on a CSS file ). Is there an online tool that can do this? ...

Why doesn't Wordpress plugin 'WP-Syntax' color Java well?

Look at this post for example - the C# examples are highlighted very well, but the Java ones are poor. I'm using the latest version of WP-Syntax BTW, does this belong on UserVoice or here? I couldn't quite decide. ...

Adding syntax colorized source code into a MS Word document.

I need this for writting a design document. EDIT: Language is C++ and ruby/php/python ...