<br><br><div class="gmail_quote">On Thu, Jul 3, 2008 at 4:10 PM, Richard Moore &lt;<a href="mailto:richmoore44@gmail.com">richmoore44@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 7/3/08, Aaron J. Seigo &lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt; wrote:<br>
&gt; text editors that still rely on extensions for syntax highlighting *sigh* one<br>
&gt; day the world will work more sanely ;)<br>
<br>
</div>Well, most editors will accept a magic comment of some sort (including<br>
kate, vim, emacs etc.).</blockquote>Yes, but maybe I won&#39;t see an icon for Ruby in Dolphin. Or if I have other ruby sources I will see &#39;main&#39; alongside &#39;clock_config.rb&#39; or whatever and it looks really ugly.<br>
<br>Another suggestion would be to have an X-Plasma-DefaultMainScript in the ScriptEngine desktop file for a particular language:<br><br>X-KDE-ServiceTypes=Plasma/ScriptEngine<br>Type=Service<br>Icon=text-x-script<br>X-KDE-Library=krubypluginfactory<br>
X-KDE-PluginKeyword=plasma_scriptengine_ruby/applet.rb<br>X-EngineName=ruby-applet-script<br>X-Plasma-API=ruby-script<br>X-Plasma-DefaultMainScript=main.rb<br>X-Plasma-ComponentTypes=Applet<br><br>At the moment I have a PackageStructure class &#39;Ruboid&#39; for Ruby just so I can use a name of &#39;main.rb&#39; for the main script.<br>
<br>-- Richard<br><br></div><br>