syntax-highlighting

code syntax highlighter

Hi all, I'm looking for an auto syntax highlighter. when I specify the starting point and the ending point of the code the syntax highlighter should automatically identify the type of code (e.g. sql, vb, cs, JavaScript etc) and highlight accordingly. Please let me know if anyone did this before, or if you know any site which does ...

Integrate Syntax Highlighter (Prettify, Pygments,..) with Plone

I'm actually challenged with documenting aspects/problems/usages of inherited source code to teach and train co-workers as well as to identify problems that should be future maintenance tasks... The idea is to create an internal wiki or blog with short articles that highlight certain features and provide hints for using the API. We alre...

Notepad++ : Custom Syntax Highlighting for .txt files

I keep code samples that I find useful as text files on my computer. I store them as txt files as opposed to the language in which they are written, so that they will open in Notepad++ instead of the editor (i.e. I don't want my c++ examples to open in an IDE, just Notepad). Is there a way I can have Notepad++ apply appropriate synt...

Change syntax color in vim?

I have syntax highlighting on, but comments are set to dark blue. This hard for me to read against a black terminal. How do I change it so that the comments are colored green instead? ...

Is there any Python syntax highlighter for Visual Studio 2010?

When I used Visual Studio 2008 I could install IronPython + IronPython Integrated IDE + Visual Studio Shell Integrated Mode and then my Visual Studio would parse .py files and highlight its syntax. I tried the same with Visual Studio 2010 beta 2 with no success. Where is the catch? Should I wait a bit longer for new releases or there is...

Code with syntax highlighting in a word processor

How can I get code with syntax highlighting into a word processor? It's for a manual that will have code examples which should be able to go from page to page so putting images is not an option. I'd rather do it with OpenOffice but I could also use iWorks or Office. The code is Ruby, Java, Python and maybe others. I could use TextMate ...

"Caret Position" in VB.NET for syntax highlighting

Hi, I'm trying to make a TextBox with syntax highlighting (for (HTML/CSS) in VB.NET 2008. I figured that if I use RichTextBox.Find(), I can color specific text, but then I need to call RichTextBox.DeselectAll(). The problem is that the the cursor jumps to the beginning of the RTB. I'm using WinForms. Any ideas? ...

Making Eclipse view different file extensions as PHP

I have several file extensions, like .module, that I would like to be understood by Eclipse to be PHP - so I get the same syntax highlighting, code completion, etc features as I would if I were editing a .php file. How can I do this? I went to Window >> Preferences >> General >> File Associations and added *.module to the file types lis...

Source code highlighting in LaTeX

I need to highlight source code in LaTeX. The package listings seems to be the best choice for most use-cases and for me it was, until now. However, now I need more flexibility. Generally, what I’m looking for is a real lexer. In particular, I need (for an own language definition) to define (and highlight!) own number styles. listings d...

How do I get Visual Studio to do vbscript syntax highlighting for .asp files?

asp files are highlighted as html in Visual Studio 2008 unless I put language=vbscript in all my <% > code blocks. lame! when I go to tools -> options -> text editor -> file extention I don't get vbscript or vb as an option, only c#, c++, html, etc ...

Indicate programming language in a file without extension

When writing executable scripts, and declarative configuration files that use a common language (eg. Python), I often find it undesirable to add an extension to the file name. Many syntax-highlighting text editor (eg. Geany) are subsequently unable to automatically determine the filetype. Is there any standard method for indicating to e...

Looking for recommendations for a syntaxhighlighter (multilanguage support if possible)

Hi folks, I do have some strings that contains programming code, like XHTML (asp.net markup), C#, C, Java and I want to display them with a syntax highlighter on my web page. Is there a control or a javascript implementation for a syntaxhightlighter that supports multiple languages? Or would you advise that I explicitly mark the code bl...

Line continuation and syntax highlighting in Notepad++/Scintilla

The PHP and HTML syntax highlighting schemes in Notepad++ are generally pretty good at recognizing and highlighting JavaScript sections within a file, except that they don't recognize \ (backslash) as a JavaScript line continuation character, as in: var legend = '<h2>Legend</h2>\ <ul>\ <li><img src="red.gif" />Sunday</li>\ <li><img ...

html-based code editors

Is codepress [ http://code.google.com/p/jquery-codepress-plugin/ ] still the best option for color-coded, line-numbered, tab-catching syntax editing ? Seems like the team developing it has lapsed. Thanks! edit: i'm looking for something i can fork/improve upon/integrate/push back to the community. Thanks again! ...

Sub-match syntax highlighting in Vim

First, I'll show the specific problem I'm having, but I think the problem can be generalized. I'm working with a language that has explicit parenthesis syntax (like Lisp), but has keywords that are only reserved against the left paren. Example: (key key) the former is a reserved word, but the latter is a reference to the variable nam...

How Is Syntax Highlighting Built?

I'm now building a developers editor using Lazarus and as every good developers editor, it needs to have a syntax highlighting, because of this that I want to know some things: How is syntax highlight normally built(using many ifs to change the font on a TextField? TSynEdit is very nice to do this? How to use TSynEdit(links and resourc...

Does anyone have a TextPad syn file for GSP?

I am looking for a syntax hilighting file for Textpad which hilights the Groovy g namespace. I have been trying to build one myself and can't quite figure out how to do it - or whether it is possible to have namespace based syntax hilighting in TextPad at all. I have a great one for Groovy, but nothing yet for GSP. Has anyone created ...

Looking for a simple blog engine or service oriented toward developers

I'm looking for a blog engine with nice syntax highlighting to share some code snippets. I already know about services http://refactormycode.com/ , but I'm really looking for a blog where people could subcribe to my feed. ...

emacs function c-forward-sws: Wrong type argument: stringp, nil

Hi, I've been getting this error in emacs whenever I type anything in certain buffers: c-forward-sws: Wrong type argument: stringp, nil It seems to be a syntax highlighting thing; I'm getting it in a buffer that's in sh-mode whenever I type anything -- even return on an empty line. I have also occasionally gotten it in a C++-mode buffe...

Markdown and Syntax Highlighting in Django with mixed code

I have some problems with following string while trying to syntax highlight them: Example <code class="php"><? echo "<input type=\"text\">"; ?></code> The php part is rendered correctly, but the html part breaks. I use the Markdown and Syntax Highlighting snippet from http://www.djangosnippets.org/snippets/119/ Any idea how to e...