|
CodeCitataion Plug-in added to site |
|
|
|
News -
Latest
|
|
Written by Dave Auld
|
|
Saturday, 06 February 2010 15:00 |
|
I have recently added the CodeCitation plug-in to the website.
CodeCitation is a source code formatter for displaying neatly formatted code on the website pages. CodeCitation was written by these guys.
CodeCitation also provides, unformatted view, copy to clipboard and printing capability to make it easy to extract the code from the pages for your own use. just hover your mouse over the code block and the helper icons will appear on the page.
An example of this is shown below;
Private Sub ButtonSQLTestConnection_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSQLTestConnection.Click
Dim conString As New SqlConnectionStringBuilder
conString.DataSource = TextSQLServer.Text
If TextSQLInstance.Text.Length > 0 Then
conString.DataSource = conString.DataSource & "\" & TextSQLInstance.Text
End If
conString.InitialCatalog = TextSQLDatabase.Text
conString.IntegratedSecurity = False
conString.UserID = TextSQLUsername.Text
conString.Password = TextSQLPassword.Text
conString.ConnectTimeout = CInt(TextSQLConnectionTimeout.Text)
Dim con As New SqlConnection(conString.ConnectionString)
Debug.WriteLine(conString.ConnectionString)
Try
con.Open()
MsgBox("Success!", MsgBoxStyle.Information, "Connection Test")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Enjoy,
Dave

|
|
Last Updated on Saturday, 06 February 2010 15:34 |