Home Site News Latest CodeCitataion Plug-in added to site
Ulti Clocks content

Polls

Do you like the new website?
 
CodeCitataion Plug-in added to site Print E-mail
User Rating: / 0
PoorBest 
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

Cool

Last Updated on Saturday, 06 February 2010 15:34
 

Add comment

The site owners has the right to edit/delete or use the comment in any way for which they choose.
The comments may be moderated before going public.


Security code
Refresh

Copyright © 2010 Dave-Auld.net. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
 
Find us on Facebook
We have 15 guests online