<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Pd has the [text] object for entering text, but I think it is not
      really suitable for your use case, because it is meant for typing
      Pd lists and therefore treats several characters specially (e.g.
      semicolons, colons).<br>
    </p>
    <p>If you want interactive editing, I think you need to make your
      own Tcl GUI object with a plain text editor. If you're a brave Tcl
      programmer, you could even add syntax highlighting and auto
      identation ;-)<br>
    </p>
    <p>For inspiration, you could have a look at the [entry] object of
      the old "flatgui" library, which is basically a widget for plain
      text.</p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 27.10.2020 15:18, Iain Duncan wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN9NcLyscB5mOQjF_f1-RuR+ZgB5K5QH10xQHFbP=ttSV0WTsQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi folks, I'm in the design stages of porting my
        Scheme for Max external to Pd, and have some questions already.
        :-)
        <div><br>
        </div>
        <div>What is the best way to deal with large-ish blocks of text
          in Pd for sending big text messages to an object? In Max (in
          case readers know it) I use a textedit object to allow the
          user to enter several lines of code, this goes to a tosymbol
          to turn into one giant symbol, and then I use a prepend to get
          a single message that looks like the below</div>
        <div><br>
        </div>
        <div>eval-string "(define (hello-world) (post :hello-world))" </div>
        <div><br>
        </div>
        <div>The above then comes into my external as two atoms.</div>
        <div><br>
        </div>
        <div>If anyone has suggestions for the best way to do that, or
          knows of externals I might want to use to accomplish the
          above, that would be lovely.</div>
        <div><br>
        </div>
        <div>iain</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </body>
</html>