Chris Koester

Sr. Data Analytics Consultant in Indianapolis, Indiana

New Blog

My work blog has moved to chris.koester.io

If you looking for the family blog, head over to the Space-Farm Continuum

Advertisements

Finding Duplicate Key Values in Tabular/Power Pivot Data Models

Code Syntax Highlighting in WordPress.com Blogs

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.

Code syntax highlighting in WordPress.com

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 & ", " & MID(item,34,2)
 End If
 FirstItem = False
Next item

Return ReturnString

End Function

Extracting Friendly Labels from MDX in Reporting Services