"Wikification" issue fixed in BASIC Anywhere Machine

10 views
Skip to first unread message

Charlie Veniot

unread,
May 8, 2022, 1:13:40 PM5/8/22
to TiddlyWiki
Right from day 1, BASIC Anywhere Machine programs would not work with blank lines between lines of code.

I'm really excited to finally have fixed that today.  (Latest version of BASIC Anywhere Machine.)

It all boiled down to me not understanding how the WikifyWidget works.  It still isn't clear to me.  Maybe somebody in the can write a nice article about that someday.

Whatever was getting fed to the BASIC interpreter, I couldn't figure out how to see it.

Eventually, through trial and error, I figured out that mode=inline fixed things.

If anybody likes digging into code (yeah, I tend to do things a little differently sometimes), go into BASIC Anywhere Machine and check out the "Basic Console Window Template".  Code below for convenience.

```
<$vars which_guy={{{ [<this_guy>!is[blank]else<currentTiddler>] }}}
       which_ver={{{ [<draft>!is[blank]then[draft]else[text]] }}}>
<$vars autostart={{{ [<which_guy>get[autostart]else[false]] }}}>
<$list filter="[<which_guy>tag[.bas]]">
<$wikify name="thisProgram" text={{{ [<which_guy>get<which_ver>] }}} mode="inline" output="text">
<iframe srcdoc={{{ [[Basic Script Web Page]get[text]search-replace[:::Program:::],<thisProgram>search-replace[:::autostart:::],<autostart>] }}} style="border:2px solid black; padding:50px;padding:0px;width:100%;height:100%;" sandbox="allow-scripts allow-popups-to-escape-sandbox allow-same-origin"  allow="clipboard-write">
</iframe>
</$wikify>
</$list>
</$vars>
</$vars>

```

Reply all
Reply to author
Forward
0 new messages