Title / Description
Code # # # # For Reference 42 "String with #{ :interpolation }" /regex$/ $/ # # # # TEST CASE 1: Question Marks # SHOULD BE HIGHLIGHTED AS: Array of Strings - Operator - String - Operator - String [?', ?(] ?'a':'b' # # # # TEST CASE 2: Percent Format # SHOULD BE HIGHLIGHTED AS: String - Operator - Array of Numbers "%d %d %d"%[1,2,3] # # # # TEST CASE 3: Space-delimited String # SHOULD BE HIGHLIGHTED AS: String Delimiter - String % 5 # # # # # TEST CASE 4: Multi-line Regex with Global Variable Interpolation # SHOULD BE HIGHLIGHTED AS: Regex Delimiter - Regex - # Interpolation Character (Optional) - # Global Variable - # Regex Delimiter - Regex Options / $$#$/ /omix # # # # TEST CASE 5: Nested Heredoc # SHOULD BE HIGHLIGHTED AS: Method - String Delimiter - Operator - # String Delimiter - String - String Delimiter # String - String Delimiter puts <<HERE<<<<THERE foo 42 HERE bla 43 THERE
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code