<div dir="ltr">That's a shame,<div><br></div><div>Anyway, I took a punt and created a tool by lifting <a href="http://planet.racket-lang.org/package-source/jaymccarthy/datalog.plt/1/0/drscheme/tool.ss">http://planet.racket-lang.org/package-source/jaymccarthy/datalog.plt/1/0/drscheme/tool.ss</a> into its own collection.</div>
<div style>I gave it a folder and an info.rkt file and popped it into collects. </div><div style>(raco setup datalog-editor-mode & restart DrRacket to install )</div><div style><br></div><div style>Seems to work OK as example, but I can't work out how to get it to select the mode based on file extension on loading the document. Currently it defaults to racket mode.<br>
</div><div style><br></div><div style>I think I should be overriding a method 'mode:surrogate-text%', but I can't work out from the documentation, as everything 'Returns the result of invoking call-super.' but a search for 'call-super' turns up noting. Any suggestions from the list appreciated :)</div>
<div style><br></div><div style><a href="http://docs.racket-lang.org/framework/Mode.html?q=surrogate-text%">http://docs.racket-lang.org/framework/Mode.html?q=surrogate-text%</a> <br></div><div style><br></div><div style><ol style="margin:0px;padding:0px 0px 0px 5px;color:rgb(172,172,172);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:21px;background-color:rgb(248,248,248);list-style:none">
<li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span><span class="" style="color:rgb(177,177,0)">define</span> datalog:surrogate<span class="" style="color:rgb(102,204,102)">-</span>text<span class="" style="color:rgb(102,204,102)">%</span> <span class="" style="color:rgb(128,128,128);font-style:italic">;; keep</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span>class mode:surrogate<span class="" style="color:rgb(102,204,102)">-</span>text<span class="" style="color:rgb(102,204,102)">%</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span><span class="" style="color:rgb(177,177,0)">define</span><span class="" style="color:rgb(102,204,102)">/</span>override <span class="" style="color:rgb(102,204,102)">(</span>put<span class="" style="color:rgb(102,204,102)">-</span>file text sup directory default<span class="" style="color:rgb(102,204,102)">-</span>name<span class="" style="color:rgb(102,204,102)">)</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span>parameterize <span class="" style="color:rgb(102,204,102)">(</span><span class="" style="color:rgb(102,204,102)">[</span>finder:default<span class="" style="color:rgb(102,204,102)">-</span>filters</div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span><span class="" style="color:rgb(177,177,0)">list</span> <span class="" style="color:rgb(102,204,102)">(</span><span class="" style="color:rgb(177,177,0)">list</span> <span class="" style="color:rgb(255,0,0)">"Prolog (.prolog)"</span> <span class="" style="color:rgb(255,0,0)">"*.prolog"</span><span class="" style="color:rgb(102,204,102)">)</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span><span class="" style="color:rgb(177,177,0)">list</span> <span class="" style="color:rgb(255,0,0)">"Datalog (.datalog)"</span> <span class="" style="color:rgb(255,0,0)">"*.datalog"</span><span class="" style="color:rgb(102,204,102)">)</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span><span class="" style="color:rgb(177,177,0)">list</span> <span class="" style="color:rgb(255,0,0)">"Any"</span> <span class="" style="color:rgb(255,0,0)">"*.*"</span><span class="" style="color:rgb(102,204,102)">)</span><span class="" style="color:rgb(102,204,102)">)</span><span class="" style="color:rgb(102,204,102)">]</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">[</span>finder:default<span class="" style="color:rgb(102,204,102)">-</span>extension <span class="" style="color:rgb(255,0,0)">"datalog"</span><span class="" style="color:rgb(102,204,102)">]</span><span class="" style="color:rgb(102,204,102)">)</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span>sup directory default<span class="" style="color:rgb(102,204,102)">-</span>name<span class="" style="color:rgb(102,204,102)">)</span><span class="" style="color:rgb(102,204,102)">)</span><span class="" style="color:rgb(102,204,102)">)</span></div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> </div>
</li><li class="" style><div class="" style="padding:0px 5px;vertical-align:top;color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);background-color:rgb(255,255,255)"> <span class="" style="color:rgb(102,204,102)">(</span>super<span class="" style="color:rgb(102,204,102)">-</span>make<span class="" style="color:rgb(102,204,102)">-</span>object<span class="" style="color:rgb(102,204,102)">)</span><span class="" style="color:rgb(102,204,102)">)</span><span class="" style="color:rgb(102,204,102)">)</span></div>
</li></ol></div><div style><br></div><div style><br></div><div style>Stephen</div><div style><br></div><div style><br></div><div>On Thursday, May 9, 2013, Jay McCarthy wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Thu, May 9, 2013 at 10:02 AM, Stephen De Gabrielle<br>
<<a>stephen.degabrielle@acm.org</a>> wrote:<br>
> Weirdly Datalog on planet seems to have a editor mode, but it doesn't<br>
> seem to be<br>
> in datalog as distrubuted with DrRacket (full?) version<br>
> 5.3.2.2--2013-01-26(295bb1e/a) [3m].<br>
> (maybe I'm not looking hard enough - or I have an old instance - I'll<br>
> check again wehn I get home)<br>
<br>
I switched Datalog to be a #lang and they can't communicate edit-modes<br>
to DrRacket.<br>
<br>
Jay<br>
<br>
--<br>
Jay McCarthy <<a>jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://faculty.cs.byu.edu/~jay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
</blockquote>
</div></div>