equal
deleted
inserted
replaced
265 " |
265 " |
266 |
266 |
267 "Modified: / 22-08-2006 / 13:32:04 / cg" |
267 "Modified: / 22-08-2006 / 13:32:04 / cg" |
268 "Created: / 05-07-2011 / 10:39:21 / cg" |
268 "Created: / 05-07-2011 / 10:39:21 / cg" |
269 "Modified: / 28-05-2013 / 22:45:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
269 "Modified: / 28-05-2013 / 22:45:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
270 ! |
|
271 |
|
272 formatStatements:aString in:aClass elementsInto: elements |
|
273 "format (recolor) a statement list in a given class. |
|
274 Return the text containing font changes and color information." |
|
275 |
|
276 ^ self |
|
277 format:aString parsingWith:[:parser | parser parseMethodBody ] |
|
278 in:aClass elementsInto:elements |
|
279 |
|
280 " |
|
281 self |
|
282 formatStatements:'(1 + 2) max:5. 1 + 2' |
|
283 in:UndefinedObject |
|
284 elementsInto:(OrderedCollection new). |
|
285 " |
|
286 |
|
287 "Created: / 22-02-2016 / 21:10:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
270 ! ! |
288 ! ! |
271 |
289 |
272 !SmalltalkSyntaxHighlighter methodsFor:'accessing'! |
290 !SmalltalkSyntaxHighlighter methodsFor:'accessing'! |
273 |
291 |
274 elements |
292 elements |