syntax-highlighting

SyntaxHighlighter and Line Break Tags

I am using the following syntax highligher: http://alexgorbatchev.com/wiki/SyntaxHighlighter For some reason when it encounter <br> it simply prints out <br> tags. I cannot replace the whole thing with System.Environment.NewLine since it will mess up the complete description. Here is my code: public static string GetDescription(stri...

How to give color to your code in open-office-writer?

I have code blocks written in Open Office Write and want colorize it. How can I do this? EDIT: When I copy syntax-highlighted code back to open office writer it becomes black again. How can I change this? ...

VB.NET Syntax Coding

I know many people ask how some of these are done, but I do not understand the context in which to use the answers, so... I'm building a code editor for a subversion of Python language, and I found a very decent way of highlighting keywords in the RichTextBox through this: bluwords.Add(KEYWORDS GO HERE) If scriptt.Text.Length > 0 T...

How to syntax-highlight XML in CDATA elements in Vim?

Vim's syntax highlighting for XML/XSL is great, except it turns off all syntax highlighting in CDATA regions. Is there a way to turn on syntax highlighting on in CDATA regions? At work, we have a lot of XSL code embedded within other XML documents. It would be great if I could get all of the goodness of XML editing for the embedded XSL ...

Syntax Highlighter for a Domain Specific Language

Hello Friends I have a DSL for which I intend to create a syntax highlighter for editors like vim, gedit and netbeans. Has anyone tried this before? Many thanks for any directions. Ketan ...

Visual Studio 2008 not detecting Errors while coding

Hi, I just installed VS on another PC, but this time, while I am coding, it is not marking syntax errors while I am coding..... I need to press F6 to get the errors. Normally when for example typing the line below, I get 's' underlined saying that there is a mismatch. Any ideas how I can enable this option? string s = 4; ...

What's a good free hosted wiki with source code highlighting?

I'm currently using Google Sites to publicly document my dev workflows and commands. However, Google Sites does not have a source code syntax highlighting system in place. Is there a free alternative to Google Sites with syntax highlighting? The solution I'm looking for need to meet the following requirements: Free hosted service At...

How can I get syntaxic coloration for Master Pages in MonoDevelop ?

I think the title speaks for it self... I mean, I can edit my master page file, it compiles and all but all the text is black. It's ok when it comes to .aspx or .ascx file but not for master pages... Any ideas ? ...

Visual Studio HTML Cursor-within-HTML-Element Syntax-highlighting color

I can't, for the life of me, figure out how to change grey highlight color in the screenshot below to something that will make the text a little more legible. Does anyone know what the "Display Item" name is that I need to change? To get to the "theme editor" select Tools => Options => Environment => Fonts and Colors. I can't find what ...

An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll

OK, Im trying to highlight keywords in a richtextbox, the problem is I've got the code to highlight only the visible text on textChanged event,so I tryed putting the code in the richtextbox VScroll, so when I scrolled up it would highlight the text that wasn't visible before, but every time I start to scroll I get this error: "An unhandl...

How can I optimize this or is there a better way to do it?(HTML Syntax Highlighter)

Hello every one, I have made a HTML syntax highlighter in C# and it works great, but there's one problem. First off It runs pretty fast because it syntax highlights line by line, but when I paste more than one line of code or open a file I have to highlight the whole file which can take up to a minute for a file with only 150 lines of co...

codemirror fails when adding </textarea> tag inside it

I'm using codemirror http://marijn.haverbeke.nl/codemirror/ to let users create their own web templates inside a web application. Codemirror works great, except for the time that users have put a tag inside their source code. When I load that up inside code mirror, it breaks everything in the source code that follows after because it ...

Does Vim or SciTE has syntax highlight support for T4 template .tt files?

As title. Thanks ...

How to remove indentation highlighting in vim?

As I use vim, it tries to be helpful by highlighting groups of four spaces in yellow, as shown. My .vimrc file says, in its entirety, set tabstop=4. How can I keep vim from highlighting the indentation in my files? ...

VS2005 SQL Syntax highlighting is incorrect for nested comments?

I'm working with VS2005, and SSMS 2005. SQL Server allows nested comments as follows: /* Comment 1 /* Comment 2 */ Some commented out code here */ This code runs fine. However if putting the above into a .sql file in VS2005, it incorrectly shows the commented out code as 'active', (its not green). It seems that StackOverflow has hig...

Strip tags but not those inside <code>

I have seen some solutions, or at least tries, but none of them really work. How do I strip all tags except those inside <code> or [code] - and replace all the < and > with &lt; etc. in order to let js do some syntax highlighting on the output? ...

How do I get python 3 syntax highlighting in vim?

Exactly what the title says. All the highlighting right now uses python2.6 and that makes me very sad face. ...

Output Java Source into pdf with Syntax Highlighting enabled

I wanted to know if there was a way, or a tool available, to output java source into a pdf that has syntax highlighting available? ...

Web publishing system with code highlighting

I'd like to publish some of the many programs I've written on the web. Is there a syntax highlighting Linux web publishing application (CMS/Blog/RoR app) that displays syntax for C++, Python, Bash scripts, SQL, VBA, awk, Erlang, java, makefiles, Ruby, Pascal and other languages? The more syntax settings configuration files, the bette...

Mac-native text editor that can syntax-highlight diff files?

I do something like "svn diff > /mystuff/current.diff". I want to view this .diff file with syntax highlighting. jEdit does it, but it's a huge beast and it takes a while to start up. I want something lightweight/native. Smultron/Fraise, TextWrangler, TextEdit, Dashcode don't seem to highlight .diff files. FileMerge seems to want to...