#BUGFIX by cg
class: SyntaxHighlighter2 class
changed: #formatMethod:source:in:using:elementsInto: (send #asUnicodeString instead of #asUnicode16String)
care for 32bit strings
--- a/SyntaxHighlighter2.st Sat Aug 04 17:03:25 2018 +0200
+++ b/SyntaxHighlighter2.st Sat Aug 04 19:02:16 2018 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
All Rights Reserved
@@ -166,7 +168,7 @@
|sourceString|
sourceString := aString string.
- newText := sourceString asUnicode16String asText.
+ newText := sourceString asUnicodeString asText.
"/ use an array here (instead of the RunArray) - this can be changed much faster using #at:put:
newText emphasisCollection:(Array new:sourceString size).
@@ -200,6 +202,7 @@
"Modified: / 22-08-2006 / 13:32:04 / cg"
"Created: / 05-07-2011 / 10:39:21 / cg"
"Modified: / 28-05-2013 / 22:45:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 04-08-2018 / 19:01:50 / Claus Gittinger"
! !
!SyntaxHighlighter2 class methodsFor:'highlighting'!