I did a few quick updates to the Afae editor and the blogging plugin last night. Just a few small things. On the editor side I added a “Text toggle” button which just toggles the editor between the two states of “Show line numbers and line highlight” and “Use text wrap but hide line highlight and line numbers”. The reason for these two states is because it seems Eclipse, as far as I can tell, can’t do all three at the same time. You either get line numbers and line highlight or line wrap.
When I am writing a blog post I need line wrapping, but when I am coding I don’t. These two mutually exclusive toggle states seem to work well.
I also added a specific blog mode to the editor so the header part of a post is somewhat color coded. It’s still not quite 100%, but it is an improvement over the non-colored version.
Finally, with the editor plugin, I added italics in themes. See the Plasitc theme for an example.
With the blogging plugin I condensed the headers to work with the color coding, and made the entry table select the whole row when you highlight an entry. It will also now autosave the entry before sending the post to the server (when you click “Post to Blog”). And a few other non-visible code improvements.
I also noticed something odd that I thought I’d point out. It seems, at least with WordPress, you can disable Pings and Comments by setting the header value to anything other than 1; however 0 does not work. It’s quite odd, and there is obviously a bug somewhere (I not sure yet if it is on transfer on a bug in WordPress), but if you set Comments: -1 That will disable comments in the post. As will Comments: 7, etc. Comments: 1 will turn them on, but Comments: 0 will have no effect.
It’s odd because in general 0 is false, and anything else is true. With Comment and Ping it seems 1 is true, 0 doesn’t seem to transfer, and any other number will get you false. However, when the setting takes, and Comments and Pings are off, the return value is 0.
So that was confusing. If you didn’t follow that, let’s just say there is a bug with toggling Comment and Ping :). Set Comments: to a value other than 1 or 0 to turn them off, set it to 1 to turn them on.
Here is a shot of the new plugins, and you can download them on the Afae page.
