This site, pnotepad.org and friends all appear to have been down for the last day or two, the Linux VM they run on seemed to be completely toasted. Hopefully everything is now back to normal and I won’t have lost too much mail. This reminds me that I really need to set up an automated script to check that all the sites are online!
December, 2005
15
Dec 05
Forums?
Should I add forums to pnotepad.org? Is there need for a “community” place for PN users that is welcoming for users other than those interested in PN development? The sourceforge tracker isn’t an ideal place for support, and many people find forums less daunting to sign up for than a mailing list.
Let me know your thoughts.
6
Dec 05
pnotepad.org’s new clothes
So pnotepad.org has some new clothes, mostly presented by Wordpress! Check it out, let me know what you think!
update: Some people think the header/banner on the page sucks. Please feel free to submit alternate banners! I am not that graphically talented, and I’m sure there must be some PN users who could do a better job. Please note I’d like to replace the text on the banner with text in the HTML to make it easily clickable and better for Google.
6
Dec 05
Adding Scintilla-Supported Lexers to PN
I wrote this a little while back as a simple explanation of the way to add support for languages supported by Scintilla to PN2.
The editing component underneath PN2 is Scintilla, and this includes a number of built-in lexers, the difficulty being that each one has it’s own style keys/numbers and they each need configuring as .scheme files to bring them into PN.
The list of lexers available looks a bit like this (the names are not necessarily correct for these!):
Ada, ADPL, Asm, AU3, AVE, Baan, Bash, Bullant, CLW, configuration files, CPP (thus Java, JavaScript and similar), Crontab, CSS, Eiffel, Erlang, Escript (ecmascript?), Forth, Fortran, Gui4CLI, HTML, Kix, Lisp, Lout, LUA, Matlab, Metapost, MMIXAL, MPT, MSSQL, NSIS, Pascal, PowerBasic, Perl, POV, PS (postscript?), Python, Ruby, Scriptol, Specman, SQL, TeX, VB, Verilog, VHDL, YAML.
That’s a lot more than are surfaced in PN!
I got this list by looking at the Scintilla source code. The way I get all the style numbers for the schemes is to look at the property files that ship with SciTE (the scintilla demonstration text editor). These files have lines like this:
# Default
style.lisp.32=$(font.base)
# White space
style.lisp.0=fore:#808080
# Line Comment
style.lisp.1=$(colour.code.comment.box),$(font.code.comment.box)
# Number
style.lisp.2=$(colour.number)
# Keyword
style.lisp.3=$(colour.keyword),bold
...
Which define some styles for lisp and would translate to:
<style name="Default" key="32" />
<style name="Whitespace" key="0" />
<style name="Line Comment" key="1" class="commentline" />
<style name="Number" key="2" class="number" />
<style name="Keyword" key="3" class="keyword"/> ...
The style.lisp bit indicates that these are styles for the “lisp” lexer, so that then goes in the lexer line in the style configuration:
<lexer name="lisp"/>
Handily, the SciTE config files also include keyword lists and things like that. It’s a matter of a few minutes to translate a SciTE config into a good PN scheme, and the XML for .scheme files is fairly simple so most people should be able to work out the conversion. If you’re trying to do this and get stuck join the pn-discuss list and ask for help.
PN also supports custom scheme definitions (like the VHDL included with PN as vhdl.schemedef). I’ll try and provide some more documentation about this soon.
4
Dec 05
PN 2.0.6.1 Released
Version 2.0.6.1 of PN2 has just been released to sourceforge. This is a maintenance release containing bug fixes only.
Bug Fixes:
- Tab bar movement with tabs on the bottom (SF #1329197, #1337576)
- Crashes with project reorganisation (SF #1351978)
- Unexpected error running tools (SF #1333875)
- Fix for inserting text clips with a text selection
- Command-line paramters not working (SF Bug #1334272)
- Smart Start error when loading files (SF Bug #1353959)
- combobox does not expand (SF Bug #1362181)
- Options dialog UI bugs (SF Bug #1361814)