HOME
User:
Anonymous
search for
in
Template Archives
Templates
Articles
Users
Login
Username:
Password:
Navigation
Registered User Functions:
Register New Account
Anonymous Functions:
Home
Users
Archives
Templates
Articles
MyGeneration Website
MyGeneration Forums
Categories
Application Type
Command Line
Graphical User Interface
Library
Sample
Web Application
Architecture Type
Client-Server
Distributed Computing
Multi-Tier
Peer-to-peer
Operating System
Linux
Win32
Programming Language
ASP
ASP.Net
C#
C++
Firebird SQL
J#
Java
Jet SQL
JScript
JSP
MySQL
Perl
PHP
PL/SQL
PostgreSQL
SQL
Transact-SQL
VB.Net
VBScript
XSLT
Archive: Syntax Coloring Plug-in
Author:
vboctor
Created:
1/25/2006 3:03:00 AM
Last Updated:
1/25/2006 3:18:13 AM
The Syntax Coloring Plug-in provides an easy way to syntax highlight a block of C#, VB.NET, J# or T-SQL code and put it into XHTML format.
string CSharpToHtml(string code); // usage: SyntaxColoring.CSharpToHtml(csharpCode)
string VbNetToHtml(string code);
string JSharpToHtml(string code);
string TSqlToHtml(string code);
The implementation of this syntax coloring engine is based on the AylarSolutions.Highlight (Copyright (c) 2003 Aylar Solutions. All rights reserved). The plug-in intrinsic object acts as the fascade for the syntax coloring functionality. The fact that it internally uses Aylar Solutions implementation is an implementation detail that may be changed in future versions. The XML file for defining new languages is intentionally hidden for the time being. It will probably be exposed in future versions.
To see an example of the usage of this class checkout the XHTML Database Report template:
http://www.mygenerationsoftware.com/TemplateLibrary/File/?guid=23394c2f-8588-435f-a1a7-41fd7d371733
This is a pre-release version, so based on feedback received, some interface breaking changes may be applied. MyGenSyntaxColoring.exe is an install that can be used to install or upgrade the plug-in. For the installation to take effect
MyGeneration needs to be restarted. Regards, Victor http://www.futureware.biz
Templates (by Title)
Updated
Title
Output Language
Username
# Downloads
# Views
1/25/2006
XHTML Database Report
HTML
vboctor
4053
684
Files (by FileName)
Date Updated
FileName
File Type
File Size
Username
# Downloads
1/25/2006
MyGenSyntaxColoringPlugIn.exe
Compiled Win32
67217
vboctor
7786
Articles (by Title)
No matching records found.
Related Archives (by Title)
No matching records found.
Messages (by Date Created)
Date Created
1/25/2006 5:27:22 AM by
my.generation
:
Excellent work, I'm going to play around with your plug-in this weekend, again great work and thank you.
Copyright © 2004 MyGeneration Software. All rights reserved.
Feedback:
feedback@mygenerationsoftware.com
Support:
support@mygenerationsoftware.com