Make you published source code more colorful
I'm going to publish VB code here. So I serf thru Internet and find out Just installed syntax nice syntax highlighter.
If you want to install syntax highlighter to your blog too, please look here.
http://developertips.blogspot.com/2007/08/syntaxhighlighter-on-blogger.html
Example of code is following:
'parser for optional arguments that stores in format Name=Value;Name=Value;Name=Value; 'return dictionary object Function ArgumentsParser(sData) Dim oResult, arrData, arrInnerData, i Set oResult = CreateObject("Scripting.Dictionary") arrData = Split(sData, ";") For i = 0 to uBound(arrData) arrInnerData = Split(arrData(i), "=") oResult.Add arrInnerData(0), arrInnerData(1) Next Set ArgumentsParser = oResult End Function
Have any questions? Write a comment.
1 comments:
Subscribe to:
Post Comments
(Atom)
Post a Comment