syntax-highlighting

Where can I get a vim syntax file for the Falcon programming language?

I just discovered the Falcon programming language today and would like to experiment with it a bit. As it is quite new, there is no ide. That's not a problem as I can use Vim. It would be helpful if there were a Vim syntax file for Falcon, but I can't seem to find one. Can someone point me to a Vim syntax file for Falcon? If not, I could...

Best text editor with custom syntax

What is the best text editor with the ability to create custom syntax? I used notepad++, but the custom syntax was a bit limited and the plugins (namely textFX) had a few bugs to satisfy me. I heard about Vim and Emacs (which one is better?), but I want a FAST editor with many features. ...

Writing a syntax highlighter

I was hoping to write my own syntax highlighter for a summer project I am thinking of working on but I am not sure how to write my own syntax highlighter. I know that there are bunch of implementations out there but I would like to learn about regular expressions and how syntax highlighting works. How does syntax highlighting work and ...

How can I get HTML syntax highlighting in my editor for CakePHP?

I use Notepad++ and Aptana for editing my CakePHP code? Is there any way to get basic html syntax highlighting for CakePHP's .ctp template files? It's a lot harder for me without any coloring going on. Any ideas? ...

How do I add intellisense to my application?

We have a proprietary macro language in one of our products, edited through our Windows software. I would like to add intellisense, but I have no idea how to go about this (at least not without completely reinventing the wheel). Is there any sample code or 3rd party package that can at least get me started? It doesn't have to be free. T...

Looking for customizable syntax highlighting in the browser

I'm looking for a customizable JavaScript script which dynamically highlights code in a block like <code class="someclass">source code...</code> It needs to be customizable because the source code is in a quite esoteric programming language (Mozart/Oz). Ideally, I'd just edit some regexes to make it work. I need dynamic highlighting b...

What are alternatives to regexes for syntax highlighting ?

While editing this and that in Vim, I often find that its syntax highlighting (for some filetypes) has some defects. I can't remember any examples at the moment, but someone surely will. Usually, it consists of strings badly highlighted in some cases, some things with arithmetic and boolean operators and a few other small things as well....

How to: C# source with syntax highlighting on PowerPoint slides

I would like to show some C# source code in a PowerPoint presentation. But how can I copy the code including the syntax highlighting onto the slides? I could make screenshots, but that has some drawbacks (ugly, font size, unmaintainable). Do you have some ideas? ...

Syntax highlighting for multiple languages in same file: StatWeave/SAS/LaTeX

I am using StatWeave to run SAS code from within LaTeX files. I would like to be able to open a file in a text editor and view the main LaTeX document with LaTeX syntax highlighting and the embedded SAS "code chunks" with SAS syntax highlighting. (The "code chunks" are real (working) code, not just for display, so I don't think the LaTeX...

Is there a way to enable both Objective-C mode and C++-mode at the same time in emacs?

I'm working with some Objective-C++ code (.mm files), and I'm curious if it's possible to get emacs to use proper syntax highlighting for both the Objective-C parts and the C++ parts. objc-mode and c++-mode are both major modes (built on top of cc-mode), so they can't be used at the same time. Are there any minor modes or elisp hacks a...

How do I enable vim7 spellchecking inside the POD sections when editing perl files?

Hi folks, I'm a long time vim user, but only recently learned that vim7 has some awesome spelling features baked in now. I've been using all sorts of external spelling tools and plugins so far, and am very excited about ditching all of them for the builtin spelling. So here's the problem. I did review :help spell and the spelling loo...

Where can I find a syntax highlighting library for Java?

I'm writing a source-code editor in Java (for Java source code), and I'd like to add simple syntax highlighting (distinctive coloring for keywords would suffice). Any suggestions? ...

Emacs Lisp syntax highlighting

I want to write a syntax highlighting extension for Emacs, but I Googling of variations on "emacs syntax highlight tutorial" have all failed. How do I go about learning how to write an Emacs highlighter? What good resources are there for learning how to do such things? ...

How can I color certain things in emacs?

I program Django/Python in emacs, and I would like things like {% comment %} FOO {% endcomment %} to turn orange. How can I set up some colors for important Django template tags? ...

How can I enable auto complete support in Notepad++?

I am trying to add simple syntax highlighting and auto completion for a simple scripting language. I added syntax highlighting using this article Now I want to know how to enable auto completion with Notepad ++ for my custom language. Does anyone know how to do that? ...

Highlight Code Block Backgrounds with Vim

While I am working in Vim I'd like to have a slight background color change for all code inside the php tags. So for example, the background is solid black for regular XHTML markup, then displays slighly lighter inside the php tags to help me identify it quickly. Is this something I can/should do with the color scheme or is there another...

Disabling transient-mark-mode

In my .emacs file, I have (setq transient-mark-mode nil) and yet transient-mark-mode is activated when I start up emacs. Calling transient-mark-mode gives the message 'transient-mark-mode disabled', but C-space still starts highlighting a region. Is there a way to turn this off? ...

QPainter colored text (syntax coloring)

I have a custom Qt widget which I used to display disassembly and I am looking to add syntax coloring to it. Currently, I simply set the QPen to a solid color, construct the text I want to display, and render it to the QPainter at the appropriate coordinates. The question is, what is the best approach to adding syntax coloring? I've th...

vim: associate extension with language

I have gvim 7.2, it recognizes .d files and highlights it correctly according to the syntax of the D programming language. However, .di files are not recognized as D files, and no highlighting is present. How do I let vim highlight .di files according to D language? ...

Syntax highlighting for domain-specific language in VS2008?

Hello. I have a domain-specific language with a certain syntax. Is it possible to make Visual Studio 2008 recognize custom languages in the usual editors? That is, associate a given file extension to a certain syntax-coloring scheme? If so, would you have any pointers as to how to do this? I'm sorry if this is a duplicate. I searched bu...