syntax-highlighting

HTML Examples - Syntax Highlighting and Encoding for Blog Posts

What is a really simple online tool for encoding and color coding HTML docs and snippets from reposting into blog entries? I found this one: http://www.stevetrefethen.com/highlighter/ but was looking for some alternatives. UPDATE: Sorry, I should have mentioned that I'm looking for more of a "one off" tool. I won't be posting code ...

VIM syntax file for specman

Where can I find an updated syntax file for specman? There are a number of these on the web, but I want one with recommendations. ...

JTextPane keeps throwing BadLocation

I have a JFrame that contains a JTextPane. The purpose of this JTextPane is to highlight words as I type them, something along the lines of a programmer's text editor. To accomplish this, I extended JTextPane, I implemented the KeyListener interface, and I had it setup as a key listener to self. The method that does some important work i...

Which is best free distributable code to html converter

In my application, I have a requirement to convert Java/VB/VB.net/etc program to HTML, and then use that HTML page (to insert in Word doc). Sure we can write code for this, but this will entail programming for this too, and from more than one programming languages, and dealing with bugs. Whereas it needs to be released ASAP. Using 3rd p...

Syntax-highlighting for PXSL?

To mitigate some of the headache of working with XML I've been experimenting with PXSL, an abbreviated syntax for any XML document with advanced macro capabilities. However, since it's so new, I haven't been able to find any text editors that know how to parse it for syntax highlighting. Do you know of any editors or plug-ins that would...

Highlight inherited members

Is there a way to visually separate an inherited class member, i.e. a variable that is defined public/protected in a superclass? I noticed that it's possible to stylize abstract members separately... I'm using Eclipse Ganymede. ...

[Python] Is there anything that cannot appear inside parentheses?

I was intrigued by this answer to my question about getting vim to highlight unmatched brackets in python code. Specifically, I'm talking about the second part of his answer where he mentions that the C syntax highlighting is actually flagging as an error any instance of curly braces inside parens. It is an unobtrusive cue that you hav...

Know any C# syntax-highlighting tricks?

I usually prefer to code with a black background and white/coloured text but I had never taken the time to change my syntax-highlighting in Visual Studio. Yesterday, when I finally got around to it one of my changes was to change User Types and User Types (Value Types) to different colors. Without realizing it, I had been using a struct...

do you know of any python component(s) for syntax highlighting?

Are there any easy to use python components that could be used in a GUI? It would be great to have something like JSyntaxPane for Python. I would like to know of python-only versions ( not interested in jython ) . ...

Highlight user-specified words in Visual Studio?

My team often puts the word TODO in unfinished sections of code. Is there a way to add user-specified keywords to Visual Studio so that these are highlighted in some way? For example, in vim the word TODO is automatically highlighted. For example, I'd want to see something like this: //This is a stub - TODO* move this to another proj...

Python equivalent to "php -s"

As you may or may not know, you can generate a color syntax-higlighted HTML file from a PHP source file using php -s. I know about the syntaxhighlighter that Stackoverflow uses and that's not really what I'm looking for. I'm looking for something will generate HTML output without Javascript. Does anyone know of something equivalent to...

Is there an IDE out there that does structural syntax highlighting?

Somewhat inspired by this question about a graphical programming environment. I don't think that C++ or C# are really conducive to this type of environment, but perhaps there's something halfway there. Lot's of IDEs that I've used will use syntax highlighting to change the foreground (or even the background) colour of text for keywords...

Visual Studio - Markup syntax highlighting inside script[type:txt/html]

Does anyone know how or if its possible for Visual Studio 2008 to highlight the html syntax inside a script block of type "text/html" just like any other markup on an aspx/html page. I'm using the script block to house my templates for client-side templating. ...

Syntax highlight design pattern

I'm looking for some good overviews of best practices and common patterns for enabling syntax highlighting in a textbox. It seems like a very common exercise almost all languages have a UI control that enables syntax highlighting in different languages. I'm just curious to see if there is a common pattern of implementation. Is everyon...

How to set curly braces'/parentheses'/square brackets'/arithmetic operators' syntax highlight color in VIM?

How do I highlight operators/parentheses/brackets/etc. in VIM? I'm not interested in coloring matching or unmatching parentheses/brackets. I've tried ":hi cBracket/whatnot guifg=something" and ":hi Operator/cOperator guifg=something" but these don't seem to affect anything. ...

class & function names highlighting in Vim

I just recently set up my Vim environment from Textmate, after becoming addicted to its modal input. However, syntax highlighting seems to be not so beautiful in Vim. I code in C++ and since the function call and class names can't be highlighted, the code is more difficult to read. I played with color scheme for a bit, but couldn't fin...

Is it possible to customize the colors of RockScroll's variable syntax highlighting?

As some of you know the RockScroll Visual Studio plugin is pretty darn awesome. It turns your scrollbar into a mini preview of your code and offers the Eclipse like functionality of highlighting any word that you doubleclick in your code. The problem is the author of RockScroll chose a color that is VERY difficult to see and almost def...

What's best way to format C# in WordPress?

Hey bloggers out there! I've created Wordpress blog that I am hosting myself, and I'm having the hardest time figuring out the best way to add C# snippets to my blog. What do you all use? I'm currently using the "SyntaxHighlighter Evolved" plugin, and it works great for the most part - the only problem is that switching back to the Vi...

How can I create a custom Eclipse Syntax Highlighter

I've been developing a compiler for a new language. I thought it would be neat to be able to demonstrate its development in a syntax aware environment. The language has quite a few custom keywords, and its structure is significantly different than common languages such as Java or C/C++. How can I develop a custom syntax highligher for...

What is the best way to implement syntax highlighting of source code in Cocoa?

I'm working on Cocoa Application that should be able to analyze and highlight a source code written in such languages as Objective-C, SQL, JavaScript, Python etc. The text should be editable too (by using NSTextView, for example). Please advise what is the best way to implement such feature in Mac OS X 10.5. There is no need to support...