Monthly Archives: January 2009

Just a quicky: I wrote a little plugin for KTextEditor which supplies you with basic error checking when you save documents. Currently only PHP (via php -l) and JavaScript (via JavaScript Lint) are supported.

Screenshots

Requirements

KDE 4.2 with development packages for kdelibs and kdebase, i.e. under Ubuntu: sudoaptitudeinstall kdebase-dev kdebase-workspace-dev kdelibs5-dev. Note: You’ll need the experimental KDE 4.2 packages activated as of now, see for example the Kubuntu news on KDE 4.2 RC1 for hints.

proper setup of environment variables, read this techbase article for more information. the .bashrc linked there should be enough for most people

For PHP support: a PHP executable which supports the -l switch for linting

For JavaScript support: a JavaScript Lint executable, you could download and compile the sources for example.

Installing

Get the sources for the linter plugin from KDE SVN and compile it, using e.g. the functions supplied via the .bashrc mentioned above:

Todo

Support for more languages

If you know good linters drop me a note. But it would be even better if you could write your own linter plugin. It’s pretty easy, take a look at one of the existing plugins for a skeleton & documentation.

Right now each plugin returns a hardcoded list of highlighting-modes which it supports for linting. This should be made configurable so that custom highlighting modes are supported

Last year I’ve blogged about the missing system monitor with the three bars for the panel and about its port to Plasma. Meanwhile other developers also did a port called System Status. In a collaboration with them we finally have the applet back in KDE’s subversion, the name is now “System Load Viewer” and it uses the data engine “systemmonitor” that already exists in KDE 4.2.So if you want to have the plasmoid for your KDE4.2 desktop, it should be straightforward to compile/install.On the screenshot you can see the plasmoid in action. There are two instances, one on the panel and one on the desktop. The one on the left is the KDE3 one.It’s worth to mention that the plasmoid already supports more featues than the KDE3 version. Features include:

show all cpus (for computers with multicores)

tooltip updates continuously

nicer visualization (maybe needs some more tweaks)

As soon as the KDE 4.2 freeze is over we’ll have to see where we can put the plasmoid to make sure it’s available for KDE 4.3 🙂

The Kate Editor Homepage

Donate

Support KDE with a donation:

€

The money is used to fund our annual KDE conference, development sprints and travel costs to conferences.