<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">You mentioned it is Smalltalk source
code, so implement this in your textProvider:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">textStylerClassFor: textGetter<br>
<br>
^SHTextStylerST80</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">If you want Smalltalk editor
functionality (doIt, printIt, etc), implement textEditorFor: too:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">editorClassFor: textGetter<br>
^SmalltalkEditor</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I haven't tested this, but I think it
should work.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Mariano</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">El 12/4/22 a las 17:00, Mariano Montone
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:77acd44b-395e-0aba-d89b-9444a18868be@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Hi,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">TextModel is asked for the TextStyler
class via #textStylerClass message.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">You can look at:</div>
<div class="moz-cite-prefix">- Implementors of #textStylerClass</div>
<div class="moz-cite-prefix">- SHTextStyler class and subclasses.</div>
<div class="moz-cite-prefix">- Implementors of
#textStylerClassFor:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">You need your textProvider to
implement #textStylerClassFor: and return an instance of
SHTextStyler class, if I'm not mistaken.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Cheers,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Mariano<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">El 12/4/22 a las 16:29, Hilaire
Fernandes via Cuis-dev escribió:<br>
</div>
<blockquote type="cite"
cite="mid:af32fd76-3a83-b7b7-818d-e9ab73b6f80a@drgeo.eu">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<p><font size="4">Hi, <br>
</font></p>
<p><font size="4">I have this TextModelMorph with Smalltalk
source code:<br>
</font></p>
<blockquote>
<pre><font size="4"><font color="#941253">codeView := TextModelMorph textProvider: self textGetter: #sourceCode.</font>
</font></pre>
</blockquote>
<p><font size="4">and I want it to style the code. How can I do
it?</font></p>
<p><font size="4">I did not find</font></p>
<p><font size="4">Thanks</font></p>
<p><font size="4">Hilaire<br>
</font></p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu" moz-do-not-send="true">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu" moz-do-not-send="true">http://blog.drgeo.eu</a></pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
<p><br>
</p>
</blockquote>
<p><br>
</p>
</body>
</html>