Put 2 Richtextboxes and a command button on a form and paste this code.

VB Code:
  1. Option Explicit
  2.  
  3. Dim m_objFont As New StdFont
  4.  
  5. Private Sub Command1_Click()
  6. Dim l_objParse As New MSSQLParser.vbSQLParser
  7.    
  8.     rtbParsed.Text = l_objParse.ParseSQLSyntax(rtbSource.Text, vbSqlServerSyntax)
  9.    
  10.     rtbSource.TextRTF = "{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Tahoma;}}" & _
  11.                "{\rtf1 \colortbl ;" & _
  12.                "\red0\green0\blue255;" & _
  13.                "\red255\green127\blue127;" & _
  14.                "\red255\green0\blue255;" & _
  15.                "\red0\green0\blue0;" & _
  16.                "\red127\green127\blue127;" & _
  17.                "\red255\green0\blue0;" & _
  18.                "\red0\green0\blue0;" & _
  19.                "\red0\green128\blue128;" & _
  20.                "\red0\green0\blue0;" & _
  21.                "\red0\green0\blue0;" & _
  22.                "}\viewkind4\uc1\pard" & _
  23.                rtbParsed.Text & "\par }"
  24.                
  25.     rtbSource.SelStart = 0
  26.     rtbSource.SelLength = Len(rtbSource.Text)
  27.    
  28.     'Set font properties
  29.     rtbSource.SelFontName = m_objFont.Name
  30.     rtbSource.SelFontSize = m_objFont.Size
  31.    
  32.     'UnSelect all text
  33.     rtbSource.SelLength = 0
  34.    
  35.     Set l_objParse = Nothing
  36. End Sub
  37.  
  38. Private Sub Form_Load()
  39.     m_objFont.Name = rtbSource.Font
  40.     m_objFont.Size = rtbSource.SelFontSize
  41. End Sub