<br><br><div class="gmail_quote">On Thu, Jul 3, 2008 at 4:10 PM, Richard Moore <<a href="mailto:richmoore44@gmail.com">richmoore44@gmail.com</a>> 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 <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>> wrote:<br>
> text editors that still rely on extensions for syntax highlighting *sigh* one<br>
> 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't see an icon for Ruby in Dolphin. Or if I have other ruby sources I will see 'main' alongside 'clock_config.rb' 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 'Ruboid' for Ruby just so I can use a name of 'main.rb' for the main script.<br>
<br>-- Richard<br><br></div><br>