I know this has been long overdue but i finally found time to update the site to support code blocks.
How to use [code][ /code ] tags:
In order to use the code highlighting in your posts use the tags
[c o de language="WhateverLanguage"][/ c ode]
in a post's body. Currently the languages supported are ASPX, C, C++, C#, COBOL, Eiffel, Fortan, Haskell, HTML, Java, Javascript, Mercury, MSIL, Pascal, Perl, PHP, Python, Ruby, SQL, Visual Basic, VBScript, VB.NET, XML. Make sure that the code pasted in your post, has no previous formating - copy the code to notepad first and then to the post's body in order to remove formating.
Below is a sample of a C# Code enclosed in a code block
[code language="C#"]
using System;
using System.Collections.Generic;
using System.Text;
namespace FASI.TicketChargeImporter.FileFormats
{
public interface IProcessable
{
string FileName { get; set;}
string ConnectionString { get; set;}
bool MustArchiveFile { get; set;}
int ProcessFile();
int ProcessFile(string fileName, string connectionString, bool mustArchiveFile);
}
}
[/code]
Here is a sample VB.NET code
[code language="VB.NET"]
Imports System
Imports System.Collections.Generic
Imports System.Text
Namespace FASI.TicketChargeImporter.FileFormats
Public Interface IProcessable
Property FileName() As String
Property ConnectionString() As String
Property MustArchiveFile() As Boolean
Function ProcessFile() As Integer
Function ProcessFile(ByVal fileName As String, ByVal connectionString As String, ByVal mustArchiveFile As Boolean) As Integer
End Interface
End Namespace
[/code]
Posted
12-07-2007 10:56 AM
by
keithrull