Sr. Data Analytics Consultant in Indianapolis, Indiana
Tag Archives: syntax highlighting
There are several WordPress plugins that perform code syntax highlighting, but plugins are not permitted in WordPress.com blogs. Thankfully, some syntax highlighting functionality is built in to the Wordpress.com platform.
Here is an example from one of my posts that shows what it looks like.
Public Function JoinFiscalPeriod(myArray as object) As String Dim ReturnString as string, Item as string, FirstItem as boolean = true For each Item in myArray If FirstItem = True ReturnString = MID(item,34,2) Else ReturnString = ReturnString &amp; &quot;, &quot; &amp; MID(item,34,2) End If FirstItem = False Next item Return ReturnString End Function