Test Page for Copy HIGHLIGHT-Tagged Code From Fourms [IE Addin]
This thread is test page for Copy HIGHLIGHT-Tagged Code From Fourms [IE Addin]
vb Code:
' Hello World in Visual Basic 6
Private Sub Form_Load()
Print "Hello World"
End Sub
vb.net Code:
'Hello World in Visual Basic .NET (VB.NET)
Imports System.Console
Class HelloWorld
Public Shared Sub Main()
WriteLine("Hello, world!")
End Sub
End Class
CSharp Code:
// Hello World in Microsoft C# ("C-Sharp").
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
CPP Code:
// Hello World in C++ (pre-ISO)
#include <iostream.h>
main()
{
cout << "Hello World!" << endl;
return 0;
}
PHP Code:
<?php
// Hello World in PHP
echo 'Hello World!';
?>
Code:
' Use normal Ctrl+C on CODE blocks
' Hello World in Visual Basic 6
Private Sub Form_Load()
Print "Hello World"
End Sub
Re: Test Page for Copy HIGHLIGHT-Tagged Code From Fourms [IE Addin]
Re: Test Page for Copy HIGHLIGHT-Tagged Code From Fourms [IE Addin]
When the syntax highlighter can't recognise the language, it shows the code similar to [CODE] tag and adds the language's name in the code block's title. You'll notice there is no line-number.
My Addin will not work in those cases. You copy-paste those codes by normal Ctrl+C/Ctrl+V method.
For example the syntax highlighter doesn't recognise HTML code.
HTML Code:
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
<H1>Hello World</H1>
</BODY>
</HTML>
You can copy/paste above code by pressing Ctrl+C/Ctrl+V. Don't use my addin in these cases.