-
Bug
-
Resolution: Done
-
Medium
-
4.3.2
-
Workaround Exists
-
Pasting code from IDE and trying to syntax highlight it (i.e. Java) in editor is not working.
For example, take this code:
Cache<Object, String> ownerCache = getOwners(k(m), 1)[0];
ownerCache.put(k(m), v(m));
NotifyingFuture<String> f = ownerCache.putAsync(k(m), v(m, 1));
assert f != null;
assertEquals(v(m), f.get());
Open a new article and paste it. If you try to select what's been pasted with keyboard, you'll encounter ORG-933.
If you try to select it with mouse and then syntax highlight it, it's not working.
To be able to actually highlight it, u need to remove carriage returns and convert it into a single line, the syntax highlight it and then enter carriage returns.