Instantly share code, notes, and snippets.

Embed
What would you like to do?
Spaces in Rebol Strings (and other tests of Rebol highlighting)
Rebol [
Title: "Syntax Highlighting of Spaces in Strings"
Date: 29-Mar-2015
Author: "Christopher Ross-Gill"
]
Samples: [ ; a comment
string-with-spaces {
I am spaced.
}
string-with-tabs {
I am tabbed.
}
binary-with-spaces #{
DECAFBAD
}
binary-with-tabs #{
DECAFBAD
}
numbers [
123 123.456 123% 123.456% 1'2'3 1'2'3.4'5'6 1.2E4
]
strings [
"A String" <a href="tag"> http://url an@email %"a file" %another-file
]
words [
Rebol word :get set: 'lit /refine #issue true false none skip
]
strings-with-percent [
"A string with %20 percent encoding."
"A string giving 100%"
{What is the % of bad characters in this string?}
]
comment-tags [
<!-- a comment -->
<!--
a comment
-->
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment