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 
<https://basicanywheremachine.neocities.org/BAM_IDE.html>.)

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>
```

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c80272e2-d089-45c6-9a5f-8f40f3f9ab80n%40googlegroups.com.

Reply via email to