Tired of mucking around with adding code chunks to your website? We all know what a pain it can be trying to add some simple block of code to our webpages and still make it readable. Introducing....The CodePrint module.
The CodePrint module is a DNN 3.x module crafted by Seabury Designs. Yes, the module was created for DNN 3.x, however, it works fine in DNN versions up to and including 4.9.0. It is a very easy to use, lightweight module and a very welcome addition to my site. Prior to finding this module, I was having to go copy and paste code from http://www.manoli.net/csharpformat/ (which is a terrific resource, btw).
The advantage of using the CodePrint module is that you can add code directly to the page, for example at the bottom of an article. It will display a properly formatted block of code, plus the HTML formatted code to include on a web page that you can easily cut and paste as well as the ASCII format.
It's a great module and I hope you can benefit from it. You can download the module PA and source code from Seabury's website here. *Note: Site registration is required for the downloads section.
From the Website:
CodePrint is a free module for DotNetNuke 3.x. It allows you to post source code examples of VB, C#, Javascript and HTML in a properly formatted and colorized manner, similar to what you would view in VS.NET.
CodePrint's features include:
- Colorized Print
- Option to include line numbers
- Option to highlight alternating rows
- Control over tab indent width
- Optional textarea that allows users to download code in ASCII format
- Optional textarea that allows users to download code in HTML 4.01 compliant format
- Handles most .NET and supporting languages
ScreenShots:
Edit screen - adding new code block

View screen
