📜 ⬆️ ⬇️

Highlighting the source code (new version)

Today a new version of my module has been released , which highlights the source code for C #, VB.NET, HTML / XML / ASPX, JavaScript and SQL.

If you want to insert a piece of source code into a new entry or comment to an entry on Habré, Source Code Highlighter will highlight your code.

There is support for line numbering and insertion of line breaks, if you have noted “Disable automatic line breaks and link creation” when writing a post.
')

In the new version:


Here is an example of the highlighted source code that this module issues:
  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Web;
  5. using System.Web.Security;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Web.UI.HtmlControls;
  10. /// <summary>
  11. /// Summary description for Test
  12. /// </ summary>
  13. public class Test
  14. {
  15. private int m_TestVar1;
  16. private float m_TestVar2;
  17. private DateTime m_TestVar3;
  18. public Test ()
  19. {
  20. //
  21. // TODO: Add constructor logic here
  22. //
  23. }
  24. public int TestVar1
  25. {
  26. get { return m_TestVar1; }
  27. set {m_TestVar1 = value ; }
  28. }
  29. public float TestVar2
  30. {
  31. get { return m_TestVar2; }
  32. set {m_TestVar2 = value ; }
  33. }
  34. public DateTime TestVar3
  35. {
  36. get { return m_TestVar3; }
  37. set {m_TestVar3 = value ; }
  38. }
  39. }
* This source code was highlighted with Source Code Highlighter .

Use on health while on Habré there is no such opportunity.

Source: https://habr.com/ru/post/40669/


All Articles