# HG changeset patch # User Claus Gittinger # Date 1533402136 -7200 # Node ID ae7c57af448f6160f5028839256444d5b97a287a # Parent 436c9d4c560387ca0945d5d488de54eafe46f1e9 #BUGFIX by cg class: SyntaxHighlighter2 class changed: #formatMethod:source:in:using:elementsInto: (send #asUnicodeString instead of #asUnicode16String) care for 32bit strings diff -r 436c9d4c5603 -r ae7c57af448f SyntaxHighlighter2.st --- 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 " + "Modified: / 04-08-2018 / 19:01:50 / Claus Gittinger" ! ! !SyntaxHighlighter2 class methodsFor:'highlighting'!