Syntax highlighter, Plugin for posting Source Code

I added “SyntaxHighlighting” functionality. Here is an example of Visual Basic code. All the information for using it on WordPress you can find on the following links:

Information to install and use “SyntaxHighlighter” on Bloger blogs is here:

Function NextWBS(iLevel As Long, sLastWBS As String, nDigits As Long) As String
'Stevilcenje z 0
    Dim asWBS() As String

    asWBS = Split("." & sLastWBS, ".")

    If iLevel = 0 Or iLevel > UBound(asWBS) + 1 Then
        NextWBS = "#LEVEL!"
        Exit Function
    End If

    ReDim Preserve asWBS(0 To iLevel)

    'Ce sem v novem nivoju, postavim to vrednost na 0.
    If Len(asWBS(iLevel)) = 0 Then
        asWBS(iLevel) = "0"
        asWBS(iLevel) = Format(CLng(asWBS(iLevel)), String(nDigits, "0"))
        asWBS(iLevel) = Format(CLng(asWBS(iLevel)) + 1, String(nDigits, "0"))
    End If

    NextWBS = Mid(Join(asWBS, "."), 2)
End Function

About Andrej Dobrovoljc

Andrej Dobrovoljc

Posted on 1. December, 2010, in Uncategorized and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: