Quantcast
Channel: ColorCode - Syntax Highlighting/Colorization for .NET
Viewing all 89 articles
Browse latest View live

Updated Release: ColorCode 1.0 (Oct 06, 2010)

$
0
0
The following languages are supported in the 1.0 release:
  • HTML
  • XML
  • JavaScript
  • SQL
  • C#
  • VB.NET
  • ASPX (C#)
  • ASPX (VB.NET)
  • {C++}
  • PHP

Note: Update the 1.0 release to 1.0.1 which has several significant bug fixes.

The build number for 1.0.1 is 62759.

Released: ColorCode 1.0.1 (Oct 06, 2010)

$
0
0
The following languages are supported in the 1.0 release:
  • HTML
  • XML
  • JavaScript
  • SQL
  • C#
  • VB.NET
  • ASPX (C#)
  • ASPX (VB.NET)
  • {C++}
  • PHP

Note: Update the 1.0 release to 1.0.1 which has several significant bug fixes.

The build number for 1.0.1 is 62759.

Updated Release: ColorCode 1.0.1 (Oct 06, 2010)

$
0
0
The following languages are supported in the 1.0 release:
  • HTML
  • XML
  • JavaScript
  • SQL
  • C#
  • VB.NET
  • ASPX (C#)
  • ASPX (VB.NET)
  • {C++}
  • PHP

Note: Update the 1.0 release to 1.0.1 which has several significant bug fixes.

The build number for 1.0.1 is 62759.

New Post: How to Use

$
0
0

how to use colorcode with my .net blog i just downloaded dll and no idea? please if you can tell me the way to use this software!!!

Reviewed: ColorCode 1.0.1 (Nov 25, 2010)

$
0
0
Rated 5 Stars (out of 5) - i like codeplex code highlighting but i downloaded the dll and still don't know how to use it if someone can please let us know :)

Reviewed: ColorCode 1.0.1 (Jan 06, 2011)

$
0
0
Rated 5 Stars (out of 5) - i like codeplex code highlighting but i downloaded the dll and still don't know how to use it if someone can please let us know :) even don't understand why codeplex big developers does not release good documentation instead shouting OPEN SOURCE !!!

New Post: How to Use

$
0
0

Hello gayancc,

The simplist case is taking some text and colorizing it. There is a code sample on the home page of the project, but here it is:

string colorizedSourceCode = new CodeColorizer().Colorize(yourSourceCode, Languages.CSharp);

If you want to do something else, like add support for a new language or change how the text is colorized, for instance, please let me know and I can provide a sample.

I hope this helps!

Cheers, Drew 

New Post: How to Use

$
0
0

hi drewmiller

thank you very much for the kind reply and all i want to do is i'm currently developing extension for my blog (dotnetblogengine). so i don't like javascript syntax highlighter colorize. OK i'll try this thanks again.


Source code checked in, #3a05ba770f90

$
0
0
Added dynamic and yield keywords to CSharp language

New Post: How I can join the project?

$
0
0

Hi,

I made some minor modifications and added new functionality to use an external css style sheet and css classes for highlighting instead of using foreground and background colors. It is now possible to generate html similar to  <span class="ccComment"> ....</span> instead of <span style="color: red"> ... </span>

I am also planning to add multi language highlighting, to detect and properly higlight inline css or javascript blocks in html code, or php code blocks etc.

How I can join the project and commit (I mean push) my changes? Please contact me

Thanks

Serkan Özkan

New Post: How I can join the project?

$
0
0

I have a question, does this library already have support for nested languages? I didn't understand what LanguageParser.AppendCapturedStylesForNestedLanguage is used for. It would be nice to have some source code documentation.  

I thought about adding some new members (like parent language, regex for language start and end tags) to  ILanguage but I gave up since it would require massive modifications. I am planning to implement my own ILanguageParser and first split text into chunks of languages and colorize them seperately and then return the merged result.

For example the following php source code will be first split into chunks of languages and colorized seperately using their respective languages :

<html>
somehtmlcode... will be highlighted as html
<?php
php code... will be highlighted as php
?>
<script language="javascript">
somejavascript code... will be highlighted as javascript
<?php inline php code highlighted as php inside a javascript block ?>
</script>

Any ideas are welcome

Reviewed: ColorCode 1.0.1 (May 28, 2011)

$
0
0
Rated 5 Stars (out of 5) - Works great. Not very extensible, But if you're satisfied by the languages it supports, then it's definitely the best highlighter out there.

Created Issue: Xml syntax doesn't show space between element attributes [25036]

$
0
0
When showing XML syntax, ColorCode doesn't show space between element attributes.

See a screenshot here: http://npe.codeplex.com/workitem/3

New Post: How to use with VB

$
0
0

I am trying to get this to work in Visual Studio 2010 as an addition to a project in VB. Every time I try to run my project  VS seems to forget that I have added the DLL as a reference as well as ignores the "Import ColorCode" statement.

Can you provide precise instructions for adding this to a VB 2010 project?

Thank you

 

New Post: How to Use

$
0
0

Hi,

I am new to .net. How can i use the colorcode.

I write something in my code

 

string filecontent = File.ReadAllText(nodefullpath); 

string colorizedSourceCode = new CodeColorizer().Colorize(filecontent, Languages.Html);

htmleditor.Text = colorizedSourceCode;

where htmleditor is a multiline textbox. But i didn't get the colored code in this textbox. where i am doing wrong please help me...

 


New Post: How to Use

$
0
0

Hi,

I try with following code

string filecontent = File.ReadAllText(nodefullpath); 

string colorizedSourceCode = new CodeColorizer().Colorize(filecontent, Languages.Html);

htmleditor.Text = colorizedSourceCode;
but i am unable to get the colored syntax. can you please provide a sample for the same.
Regards
gsknbabu

New Post: rich text box vs. HTML

$
0
0

Hello there!, 

First of all thanks for this great control with so many possible options.

I tried to use it today without success. Unfortunately when I was doing :

 

Dim colorquery As String = New CodeColorizer().Colorize(query, Languages.Sql)       

txtQuery.Text = colorquery

 

as the result I receive pure HTML in my text box instead of coloured text. Can you please explain what I am doing wrong? 

Peter

New Post: Razor support

$
0
0

guys,

do you plan on updating the package for razor support?

New Post: How do I use IStyleSheet

$
0
0

I would like to use a style steet so i can change a few styles like background color, also so that i dont have inliine styles in code.

Is this possible and how to do if is possible?

New Post: How to use with VB

$
0
0

I have got it working in VB, usesing VS 2010, I an not sure why you are having problems, maybe try removing ref and re adding and rebuild project

Dim sourceCode As String = My.Resources.Resources.IHttpModule

Dim coloredCode As ColorCode.CodeColorizer = New ColorCode. 

CodeColorizer 

 

Dim colorizedSourceCode As String = coloredCode.Colorize(sourceCode, ColorCode.Languages

.VbDotNet)

 

Viewing all 89 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>