syntax-highlighting

What is best blogging host for programmers/code formatting?

I was just reading how can you tell whether you're ready to start your own blog. The answers are so good and inspiring that I made rush to start my own blog using blogger and stopped right in my tracks. I looked on the menu bar as I was creating my first post, and duh, there's no nice "code sample" formatting option like the one on Sta...

Javascript syntax highlighting in vim

Has anyone else found VIM's syntax highlighting of Javascript sub-optimal? I'm finding that sometimes I need to scroll around in order to get the syntax highlighting adjusted, as sometimes it mysteriously drops all highlighting. Are there any work-arounds or ways to fix this? I'm using vim 7.1. ...

Are there any JavaScript live syntax highlighters?

I've found syntax highlighters that highlight pre-existing code, but I'd like to do it as you type with a WYSIWYG-style editor. I don't need auto-completed functions, just the highlighting. As a follow-up question, what is the WYSIWYG editor that stackoverflow uses? Edit: Thanks to the answer below, I found two that look like they migh...

How to highlight source code in HTML?

I want to highlight C/C++/Java/C# etc source codes in my website. How can I do this? Is there a library I can use? Is it a CPU intensive job to highlight the source code? ...

Is there a tool to convert a .vim colour definition file to use in VS.NET 2008

If you go to a site such as: http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/index-c.html It has a bunch of example colour themes for VI. Does anyone know of a tool that would take those files and convert them into .vssettings files to use in Visual Studio? If not, how about some good docs on ether of the formats. ...

Stop SubText/FCKEditor messing up the HTML

I'm trying to put together a blog, and have gone with SubText and I've just installed SyntaxHighlighter but it doesn't seem to work properly. SubText or FCKEditor seems to tamper with the HTMl, inlineing everything in the pre tags and placing line-breaks at the end of each line. Bad times! Anyone know how to stop this? ...

open source syntax highlighter tool?

I'm looking for an open source, cross platform (Windows & Linux at least) command line tool to take some code (C++, but multiple languages would be sweet), and spit out valid a XHTML representation of that code, with syntax highlighting included. Ideally the XHTML should just wrap the code with <span> and <div> tags with different class...

How can I customize the syntax highlighting in Visual Studio 2005?

Is it possible to customize the syntax highlighting in Visual Studio 2005? Up to now, I found no way to do this. In eclipse for example, it's possible to setup custom highlighting. ...

Are there any jEdit syntax highlighting modes for Objective-J

I have found some in the Cappuccino website (vim, textmate and SubEthaEdit), but not for jEdit, and unfortunately I'm just starting on Objective-J so can't make my own. If anyone has got one of them lying around it would be greatly appreciated. ...

looking for Java GUI components / ideas for syntax highlighting

I'm not committed to any particular GUI tookit or anything - just needs to be Java based. I want to do simple syntax highlighting ( XML and XQuery ) inside editable text areas. My only candidate so far is Swing's JTextPane, as it supports seems to support the styling of text, but I have no idea how to implement it in this context. If a...

Keyword highlighting on selection in Visual Studio 2008

Hello. A little while ago I managed to get Visual Studio 2008 (C++) into a state where, if I would select a keyword (or any symbol for that matter), by either double clicking on it or highlighting it, all other instances of that symbol within the current file would become highlighted too. This was a really useful feature. Since then it...

Syntax highlighting code with Javascript

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

Syntax Highlighting VS Addins

What tools are out there that compete with this product? CodeKana I know ReSharper has improved syntax highlighting. Is it comparable to this? ...

Improved CSS syntax highlighting in vim

The CSS syntax highlighting in vim is not entirely optimal. For example: div.special_class stops the highlighting at the _. Is there an improved highlighter that doesn't bite on an underscore? Update: I'm using VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun 17 2008 15:22:40) and the header of my css.vim is: " Vim syntax file "...

Stackoverflow diff system

How can I implement a text diff system that is similar to the one Stackoverflow is using. Could someone explain the overview of the system behind it? Is there any open source code available? ...

Tool purely for Syntax Checking?

We have a proprietry system that we develop scripting code in. We currently do not have a developer environment (apart from Notepad++) and cannot debug or compile this code. We have to submit it to the vendor to insert the code into the test or live system. The language is essentially C like and has the same syntax. Basically we want a ...

What code highlighting libs are there for Ruby?

What'd also interest me is which have more or less dependencies. ...

What code highlighting libs are there for Java?

easy to bundle, few dependencies, easy to use ...

Syntax highlighting when pasting into emails

Im in the situation that I often send small codesnippets and xml-snippets to coworkers and partners via my outlook. Has anyone got a good idea or tool that I can use to have my pastes syntaxhighlighted before I paste them into an email. I was thinking of an intermediate paste to "$fancytool" and then I would have something to copy that...

PHP syntax highlighting

I'm searching for a PHP syntax highlighting engine that can be customized (i.e. I can provide my own tokenizers for new languages) and that can handle several languages simultaneously (i.e. on the same output page). This engine has to work well together with CSS classes, i.e. it should format the output by inserting <span> elements that ...