Aug 29, 2009

regular expression for real

'(\\b0[xX][0-9a-fA-F]+\\b)|(\\b[0-9]*\\.[0-9]+f?\\b)|(\\b[0-9]+\\b)'

Add this to syntax highlighter to high light "numbers" in 3 format :
  • 0x204080FF
  • 3.14159f
  • 7

No comments: