ID:1979693
 
BYOND Version:N/A (Website Bug)
Operating System:Windows 10 Home 64-bit
Web Browser:Firefox 42.0
Applies to:Website
Status: Open

Issue hasn't been assigned a status value.
When posting snippets of code, the tag DM allows syntax to be color-coded on the web. However, integers do not highlight with the DM tag.
1
var/a = 1


I understand this is likely because of an issue with parsing, like not wanting to highlight the 1 in 'test1'. However, just highlight it in the case that no letters are next to it OR in the case that it has an operator before/after it.

var/a = 1 + 1
var/b = a / 10
var/c = b % 2
Yeah, numbers are intentionally not highlighted here because it's rather a pain to do that; it would result in much larger blocks of HTML. Eventually I want to use a JavaScript highlighter (or re-highlighter) that would obviate the issue.
Ohh, I figured javascript was already being used for other terms with the DM tag.