Tango Icons for jEdit

posted 09:22PM Oct 28, 2007 with tags icons jedit macosx tango by Lars Trieloff

An easy way to improve the already-sleek look of jEdit on Leopard is using Seph M. Soliman's icon collection for jEdit that is based on the Tango Icon project (another project using this icon set is Gimp.app in the latest 2.4rc3 build)

http://weblogs.goshaky.com/weblogs/lars/resource/jedit-leopard.png

Speaking of jEdit and Gimp, one thing that annoys me with Leopard is that Spaces does not deal with Java or X11-applications. Clicking an application's icon in the dock switches the desktop to the space where the main window of this application. Unfortunately this does not work with jEdit or the Gimp.

ESP (Javascript Template Language) syntax highlighting for jEdit

posted 12:48PM Oct 19, 2007 with tags esp javascript jedit jste microsling by Lars Trieloff

I started playing around with Bertrand's microsling (P.S. do not google for the name of the project), which is a minimalized version of the Apache Sling (incubating) framework. Microsling supports two templating languages, Velocity and ESP which is a JSTE-inspired JSP-like syntax for Javascript. As I am a fan of server-side Javascript, I opted for the ESP template language and noted there is no syntax highlighting support in my editor.

With jEdit this is no problem, however. I just copied and adjusted the JSP syntax highlighting definition file, adopted it to ESP and got fine syntax highlighting for ESP files.

http://weblogs.goshaky.com/weblogs/lars/resource/esp-syntax.png

All you need to do is download esp.xml, put it into your jEdit-modes directory (either in the jEdit application folder or in $HOME/.jedit/), and add following line to the catalog file in the same directory:

<MODE NAME="esp" FILE="esp.xml" FILE_NAME_GLOB="*.esp" />

Update: As I learned from Felix, ESP is not inspired by JSTE, it is just very similar. In fact ESP is being used since 2001 by Day. And as I learned from Betrand, it is not Bertrand's microsling, he was just the first to write about it.

| Comments[3]

Who else wants to get rid of the default jEdit icons?

posted 09:26PM Aug 01, 2006 with tags gnome java jedit linux macosx tips by Lars Trieloff

jEdit is a great editor. It is free, runs on every platform, can be extended using plugins, can be scripted using macros, but the default set of icons is a shame. Java swing applications are known to look arkward and jEdit is no exception. But there are some simple steps of getting rid of the default look and feel.
  1. If you are using GNOME, you should download Java 1.6 Mustang beta, as it supports the new GTK Look and Feel which makes jEdit look more like a native GTK application. Windows users have no problems, Mac OS X users should follow the next instruction.
  2. If you are using Mac OS X: Start jEdit, open /Applications/jEdit/jEdit.app/Contents/Info.plist. This is an XML file, but you just need to find the line containing <string>org.gjt.sp.jedit.jEdit</string> and add following content below: <key>Properties</key> <dict> <key>com.apple.macos.useScreenMenuBar</key> <string>true</string> </dict>. Save the file and restart jEdit. Now the Menu bar will not be part of the main window any more, jEdit uses the Mac OS X menu bar like a proper Mac application.
  3. Download the icon set from this forum post and install it to the lib/ext folder of your Java runtime installation. For Mac OS X users, this is probably /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/, Windows Users should look for C:\Program Files\Java and Linux users should ask their distribution where Java is installed.

The result is a jEdit that looks much more like the cool and powerful application it is.

| Comments[1]