syntax-highlighting

Enabling italics in vim syntax highlighting for mac terminal

I'd like to have vim display my comments in italics, and I understand I need to place cterm=italic in the hi Comment line in the color.vim file I'm using. This, however, is having no effect on the text display, which I suspect has to do with some Terminal.app setting, unless I'm misunderstanding the vim syntax. I'd appreciate if some...

Eclipse: XML syntax coloring for non-XML files

Hi, all. In my previous (and first) foray into Eclipse, I inherited another Developer's workstation and setup. Now, I'm trying to setup a new Eclipse instance from scratch, and, in turn, am scratching my head. How do I go about getting XML-style syntax coloring for files that do not end in .xml (specifically vxml files, in this case)?...

How to modify existing highlight group in vim?

Hello. If i have existing highlight group in vim via link, for example hi link my_highlight_group my_default_color Is it possible to add 'bold' to my_highlight_group without changing my_default_color? Following does not work: hi my_highlight_group gui=bold Surprisingly, i can add bold if my_highlight group is defined directly (not...

Custom syntax highlighting in vim for links

I have a custom file format for graphs which looks like this: node1.link1 : node2 node1.attribute1 : an_attribute_for_node1 node2.my_attribute1 : an_attribute_for_node2 (there is nothing special about the attributes names, an attribute is a link iff one can find its value at the left of a dot. So node2 is a link, because there is a l...

Drupal 6 module for program syntax higlighting

Hello, Can you recommend a drupal module that provides a syntax highlighting input filter? Good coverage of less known programming languages would be nice. ...

Dreamweaver code view highlighting

I'm getting rather sick of Dreamweaver. It decides some PHP is invalid and then picks a random colour to display the code in, instead of the normal syntax highlighting. I've Googled the problem of course, but can't find a way of turning this behaviour off. The particular thing it's doing at the minute is this: Invalid markup Marked in...

How to display XML in a HTML page as a collapsible and expandable tree using Javascript?

How to display a XML document in a HTML page as a collapsible and expandable tree? I'd like to display a XML document inside a HTML page as a nicely pretty printed tree structure. I'd like to be able to expand and collapse tree branches. For example Firefox browser does this when you load a plain XML file. Surely there is a some kind o...

ASP.NET Editable Text Box with Syntax Highlighting

Here's what I'm trying to do. I'm looking for a WYSIWYG editor or just a plain text-box that will highlight HTML syntax (in ASP.NET). Basically, we have a CMS that allows you to mess with templates for various pages, but right now all of the editable HTML is in a plain, ugly, text box. Does anyone know of an editor that will highlight th...

Outlook C# code formatting?

I've searched around the internet for this, and I'm not finding it... Is there a way or a add-in you can use that will make code (let's say C#) appear properly in Outlook emails? I hate when I'm trying to communicate a snippet to a fellow developer, and when you paste it into an Outlook email (which is using Word/HTML as the editor), i...

c# - perfect syntax highlighting

Hello, I'm looking for a RichTextBox with syntax highlighting! Sounds easy but I'm searching since months and didn't find that what I need. First I started to do it by myself... No good idea... I tried to use this: http://blogs.microsoft.co.il/blogs/tamir/archive/2006/12/14/RichTextBox-syntax-highlighting.aspx but that code don't hand...

ICSharpCode.TextEditor - Change Syntax Colors

Hello, I'm using the ICSharpCode.TextEditor and want to change the syntax colors... in the namespace ICSharpCode.TextEditor.Document there is the public class HighlightColor but I don't know how to give new colors to the editor. Somebody there, who knows how to do this or where I can find a documentation for that editor control? ...

Syntax coloring of own types in Visual Studio (C++)

How can I get Visual Studio to highlight my own class types? This works fine for C# but not for C++... ...

Are there any syntax highlighting plugins for javadoc?

Hi, Currently I format code examples in my javadoc using the PRE tag e.g.: /** * Example javadoc * <pre> String foo = "bar"; </pre> * * @return true if the operation completed */ But this turns out rather monotone and boring in the resulting javadoc, I'd much rather have some syntax highlighting similar to SyntaxHighlighter. ...

vim syntax highlighting else: for python

I'm getting annoyed with the default python syntax highlighting in vim. it does not highlight the else: statement correctly. vim only highlights the else statement if i have some white space between the "else" and the colon ":" so this works: "else :" but "else:" does not. It must be easy to fix.. I'm using vim 7.2 ...

Color Themes for Eclipse CDT?

Hello, I know that there are many questions regarding the color themes in Eclipse. The problem is that all of them are for Java or PyDev and, of course, they don't work for C/C++. Do you have any cool syntax highlight theme for C++ under Eclipse? ...

How do I install and use Wordpress GeSHi - Generic Syntax Highlighter

Can anyone recommend how to install and use wordpress.org GeSHi syntaxhighlighter? I'm looking for start-to-end directions in one place, not a link that refers to info in 8 other "prerequesite" knowledge links. ...

Why are user types not highlighted in Visual C++?

I would like to have Visual Studio highlight the names of my own classes in the text editor. I have selected a color under User Types in Options > Fonts & Colors -- but strangely, this only works for Visual C# but not Visual C++. Any ideas what's going on? EDIT: I received some great tips regarding 3rd party tools in response to my pr...

Possible to add Ruby syntax highlighting to Visual Studio 2008?

When I open a Ruby file (*.rb) inside Visual Studio, it reads like a regular text file - with no syntax highlighting on language keywords. Is there any way to set this up in Visual Studio? Update: No, I don't use Visual Studio for Ruby development - I use Netbeans. But I would like to open a Ruby file in Visual Studio and see the prope...

vim syntax highlighting for jinja2?

How do you do jinja2 aware syntax highlighting for vim? ...

HTML syntax highlighting in javascript strings in vim

Hello, I don't know if this is possible/sensible, but I was curious to know if I can have my strings in javascript files have html highlighting. I discovered that strings in php could have SQL syntax highlighting, so I believe it is possible. But, I don't know vim-scripting, so any help on this appreciated. I am using the Better Javas...