syntax-highlighting

Syntax highlighting for regular expressions in Vim

Whenever I look at regular expressions of any complexity, my eyes start to water. Is there any existing solution for giving different colors to the different kinds of symbols in a regex expression? Ideally I'd like different highlighting for literal characters, escape sequences, class codes, anchors, modifiers, lookaheads, etc. Obviousl...

Incorrect syntax highlighting Vim (Actionscript 3)

The braces shown below after ...ret):String are incorrectly being highlighted as red I'm using the following syntax definition file for actionscript: http://www.vim.org/scripts/script.php?script_id=1061 2 Questions: Does anyone happen to know off-hand what causes this weird matching? Is there anyway of identifying the current sy...

Does Visual Studio 2010 have SQL syntax highlighting for .sql files?

Basically the title is my question. I have a project in one of my solutions just for storing development assets like DB creation scripts and the like. While I normally use SSMS for developing and running these scripts, I would like to be able to open them in Visual Studio and see the same syntax highlighting that's in SSMS. It's just a...

vim search by syntax-highlighting type

I'm adding i18n to an existing project (web application). This involves replacing every bit of static text with calls to an i18n library. It would be convenient to be able to search for this text rather than rely on syntax highlighting to identify it visually. In vim, is it possible to search within a file for occurrences of a certain...

Is there a notepad++ plugin that makes JSP comments format correctly?

I would love Notepad++ to show the comments correctly (see screenshot) Is there any plugin that takes care of it? Or is there any way I can get it to default to another languages' formatting when I load a JSP file? ...

VB.NET: Syntax Highlight

Hi, I started to learn VB.NET and I'm trying to do a syntax highlight. The problem occurs when i set the color of selected text. It changes the whole richtextbox's content. Private Sub txtText_TextChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rtbText.TextChanged Dim keywords As ArrayList Dim index...

Textmate syntax highlighting, extending highlighting from another language

I'm trying to extend some CSS highlighting in Textmate. My approach is like so... { .... patterns = ( { include = 'source.css'; }, { name = 'support.function'; match = '\..*\);'; }, ); } The problem is "include = 'source.css';". If I remove that line. My custom matcher hits...

Vim: highlight latex comment using a differnt file type.

I am using vim to write latex. I would like to highlight the latex comments using a different file type. (For example I would like to highlight the latex comments using c++ formatting). Is there a way to do this? (Edit) Example: \section{Introduction} % This is a comment. I would like to higlight comments using the % synta...

Add syntax highlighting to .less-files in NetBeans

Hello! I want to have files with a .less extension use the CSS syntax highlighting in NetBeans, and I don't have any clue how to do this. I found a rather time consuming way to do this (http://netbeans.dzone.com/tips/quickstart-guide-language-supp), but it hit me that it must be easier way to do this. Anyone knows? ...

How to print Smalltalk code from Pharo/Squeak?

What is the best way to print - syntax colored and well formatted - code from Pharo/Squeak on paper? 1) Is there a way to print directly from within Pharo/Squeak? (i use it on macosx) 2) Is there a way to export syntax colored, well formatted code from Pharo/Squak? 3) Are there external tools to color and format a filed out piece of co...

Code Syntax Highlighting in Delphi 6 (to highlight syntax and ifdef blocks)

Delphi 6 is pretty old, I know. Unfortunately there are reasons why I can't upgrade which I don't want to get into here. My problem is that it's hard to read code. I have the Castalia plugin which helps a bit (parenthesis matching, shows blocks of if, else, end) but it doesn't highlight the syntax like other IDEs do (variables, cons...

Syntax Hightlighter Problem Loading Partials

Hi I'm using the syntax highlighter found here: http://code.google.com/p/syntaxhighlighter/ I have a page wherte it works fine: <div id="codeArea"> <pre class="brush:csharp"> var customers = new Customer().GetCustomerList().AsEnumerable() .Where(c => c.CustomerID < 5); </pre> However,...

Syntax Highlighter putting new lines randomly (or maybe after every symbol).

I am using a simple implementation of Syntax Highlighter for a blog written in CodeIgniter. Here is the link http://code.angad.sg/index.php/blog/test Not sure why is this happening. I am not pasting the source code for the file; you can do a Ctrl+U on the link. Thanks :) ...

How do I: Visual Studio Syntax Highlighting Extension

I want to develop an extension for VS2010 that will allow me make some additional features to syntax-highlighting. I installed the SDK, how do I start from? Please give a little snippet (or a link to code) where I can see how to start. Note: do I have to check the whole block of code, or the SDK tells me on each word what it is, how i...

Sliverlight control with code hightlighting?

Is there a Silverlight control out there that will allow you to type in text and have it highlighted as code? For example: foreach (client in Clients) { client.Save(); } would become foreach (client in Clients) { client.Save(); } I need to write a web app to screen non-programming programmers without wasting time on them one...

RichTextBox syntax highlighting in real time--Disabling the repaint

I'm creating a function that takes a RichTextBox and has access to a list of keywords & 'badwords'. I need to highlight any keywords & badwords I find in the RichTextBox while the user is typing, which means the function is called every time an editing key is released. I've written this function, but the words and cursor in the box fli...

How do I disable (or change) keyword highlighting in comments?

I am using Visual Studio 2008, and Resharper 5.0: There are certain keywords such as note, bug, and todo that are highlighted within comments that I would like to disable or at least alter the highlight color and/or specify keywords. However I can't find any settings in Visual Studio's Fonts and Colors options nor in Resharper's option...

Colored source in java project in Eclipse

Hi, when I create a New Project in Eclipse, source files such as .html .xml are colored, but when I create New Java Project they aren't. How can I change this ? Thanks for help ...

Way to highlight code in textarea with jquery?

Hello Well here's a tricky one for you. Is there any good and logical ways to highlight code inside textarea via jQuery? If there is, please share. Martti Laine ...

How to let a .myhtml file has colors as a html file in vim?

I have a html file, it has good colors in vim. But I want to define some custom file types, they have html content, but with different suffix names. e.g. index.html -> index.myhtml But when I open "index.myhtml", it has no colors, only black and white. How to let the vim treat the ".myhtml" as ".html"? Thanks in advance! ...