
Source code highlighting (new version)
Today a new version of my module has been released , which highlights the source code of C #, VB.NET, HTML / XML / ASPX, JavaScript and SQL.
If you want to insert a piece of source code into a new record or comment on a record on Habré, Source Code Highlighter will highlight your code.
There is support for line numbering and line wrapping inserts if you checked "Disable automatic line breaks and link creation" when writing a post.
Here is an example of the highlighted source code that this module issues:
Use health while on Habré there is no such opportunity.
If you want to insert a piece of source code into a new record or comment on a record on Habré, Source Code Highlighter will highlight your code.
There is support for line numbering and line wrapping inserts if you checked "Disable automatic line breaks and link creation" when writing a post.
In the new version:
- Fixed line numbering. Now you can select the source code without numbering.
- A button has been added for quickly copying a formatted code to the clipboard - “Copy formated code to clipboard”.
- Added the ability to save the original indentation (at the request of dunkan_macleod) - "Preserve Original Padding".
- UPD: Added support for normal quotes. ("")
Here is an example of the highlighted source code that this module issues:
* This source code was highlighted with Source Code Highlighter .
- using System;
- using System.Data;
- using System.Configuration;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- ///
- /// Summary description for Test
- ///
- public class Test
- {
- private int m_TestVar1;
- private float m_TestVar2;
- private DateTime m_TestVar3;
- public Test ()
- {
- //
- // TODO: Add constructor logic here
- //
- }
- public int TestVar1
- {
- get {return m_TestVar1; }
- set {m_TestVar1 = value; }
- }
- public float TestVar2
- {
- get {return m_TestVar2; }
- set {m_TestVar2 = value; }
- }
- public DateTime TestVar3
- {
- get {return m_TestVar3; }
- set {m_TestVar3 = value; }
- }
- }
Use health while on Habré there is no such opportunity.