syntax-highlighting

QSyntaxHighlighter highlight ascii?

How can I get the QSyntaxHighlighter to syntax highlight ascii characters like @ or #? This is my current code: Highlighter::Highlighter(QTextDocument *parent) : QSyntaxHighlighter(parent) { HighlightingRule rule; keywordFormat.setForeground(Qt::darkBlue); keywordFormat.setFontWeight(QFont::Bold); QStringList keywordPatterns; keywor...

Searching for a semantic syntax highlighter in Javascript

OK, I know, there are literally dozens of already available syntax highlighters out there. But I want one specifically, that implements line numbers through <ol/> lists. And that reduces the number of possible candidates to one, Lighter.js. Unfortunately, that is MooTools based, and since I decided some time ago to use jQuery, I don't wa...

How can I serve up color-coded Java code using PHP?

I'd like to embed code from my SVN repository into my website, using PHP. The SVN has public anonymous access, so the PHP code should be fine reading it. The code on said SVN is java, and so far I've had no luck finding a syntax-highlighter to make the code more readable. Ideally I'd like one that uses CSS classes so that I can change t...

Better C# Syntax Coloring for Visual Studio 2010?

Coming from Eclipse, I'm disappointed with the very limited syntax coloring capabilities offered for C# by Visual Studio (all versions, up to 2010). In particular, I'm interesting in distinct coloring for methods / fields / locals / static stuff. I'm aware Visual Assist can enhance the coloring, but I've failed to find any free alterna...

Visual studio 2010 colourizers, intellisense and the rest. Where to start!!

Ok, before I begin I realize that there is a lot of documentation on this subject but I have thus far failed to get even basic colourization working for VS2010. My goal is to simply get to a point where I can open a document and everything is coloured red, from here I can implement the relevant parsing logic. Here's what I have tried/...

Is there such a thing as an "elisp bundle" for TextMate?

I started using Code Collector Pro to organise and save my Emacs codes, and this software requires TextMate bundles for syntax highlighting. They have a lisp bundle, but not an elisp bundle, at least not that I can see. I would think that the syntax highlighting would work under the lisp bundle, but for some reason it isn't happening. I...

Is there an Eclipse C# Highlight, Code Completion plugin

I need an Eclipse 3 plugin for C# syntax highlight and hopefully code completion. I am running both Mac and Windows versions of Eclipse. I have evaluated "Improve C#" but it seems to be not working. ...

How to get Gherkin syntax highlighting for .feature files in Visual Studio?

There's no highlighting for Feature, Scenario, Given, When, Then, etc. keywords by default. Is there a ready made template out there to enable this? ...

Free/open source code editor UI control for .Net

I'm looking for a free, syntax-highlighting, possibly autocompleting "Programmer's textbox" style control for use in a Visual Studio Windows Forms or WPF project. It should work with C# and self-defined languages, and the licence should permit its use in a closed, in-house development tool. There are pay-for solutions available - someth...

Problem in making custom syntax highlighting in TextMate. Help!

Hi, I am trying to highlight a custom language in TextMate. However, the following definition does not highlight PHP insertions (I do select it for my *.serpent files): { scopeName = 'source.serpent'; fileTypes = ( 'serpent' ); patterns = ( { begin = '<\?'; end = '\?>'; patterns = ( { include = 'source.php'; } ); }, ); } ...

Open Source C# Syntax Editor with Intellisense

Can anyone please suggest me a good open source C# code editor control with syntax highlighting and intellisense to use in my application. I am not asking for any IDE like VS or #develop, I need only a winform code editor control so that I can use it in my application for scripting. Can you please suggest me a good one ... I found Scint...

Use LaTeX Listings to correctly detect and syntax highlight embedded code of a different language in a script

I have scripts that have one-liners or sort scripts from other languages within them. How can I have LaTeX listings detect this and change the syntax formating language within the script? This would be especially useful for awk within bash I believe. Bash #!/bin/bash echo "hello world" R --vanilla << EOF # Data on motor octane rati...

TextMate: Conditional formatting?

I want to be able to color lines differently based on the starting character. eg.: - This is line 1 - This is line 2 x This is line 3 - This is line 4 x This is line 5 So lines 1,2,4 (starting with '-') should be blue while lines 3,5 (starting with 'x') should be red. Is this possible? How would you do it? Thanks. ...

Good blogging service for writing posts about coding

I'm looking for a blogging service (like blogspot.com) where I can quickly start to get thing going, and was wondering which was suited to write technical posts, i.e. one that has a good common way to embed source snippets, perhaps even with syntax highlighting for some languages ? Edit: Wordpress seems to be quite good (but I'm still l...

Problems making an accurate Visual Studio scheme for Vim (vim scheme specialist needed) .

I'm trying to make an accurate Visual Studio scheme. I set hi function to blood color (#9A1102) for the "CSS function" (e.g. #thisisanid). But now the brackets with properties (id, class) in html elements also have blood color: (ironically the same color here in Stackoverflow). But I want them blue (#2902FC) e.g.: Sample of ...

How do I change syntax highlighting CSS to a blog hosted on WordPress.com?

I've a blog hosted on WordPress.com, and i purchased the "Custom CSS" update to modify CSS. Now I want to change some CSS options of Syntax Highlighting provided by Wordpress.com. For example, i want that [code lang="C"] int main() { } [/code] will be displayed with a black background instead of standard white one. I've added in ...

How to change the color of the selected code (Vim scheme)?

I can't figure out how to change the color of the selected code (with cursor, either with Visual mode or with the mouse). I think right now the bg is white with black fg. Any suggestions? hi CursorLine guibg=#DDDDDD gui=none hi CursorColumn guibg=#EEEEEE gui=none hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=none hi Pmenu guif...

Plug-in Development: Creating Problem Marker for a Given Resource

Hello everyone. I seem to be having a problem with associating a problem marker with a resource; in my case, I'm trying to create a problem marker for the editor. To achieve this, I've tried to do the following: public class MyEditor extends TextEditor{ private ColorManager colorManager; public MyEditor() { super(); ...

Syntax highlight for Sass is not working in Vim.

I just downloaded a Vim plugin for Sass syntax highlight. The instructions say: install details put it into syntax directory and add sass filetype au! BufRead,BufNewFile *.sass setfiletype sass in your filetype.vim I already placed sass.vim in vimfiles/syntax/ (using windows). And created a filetype.vim file with ...

Possible to highlight matching quotes in vim?

With the syntax highlighting in vim, I get the handy feature where the matching paren or bracket will be highlighted when I put the cursor over it. Is it possible to do the same thing for quotes? ...