Hi PN Users
I have just written a lightweight markup language which I want to integrate within an editor and it seems to me from what I've read so far PN may be the product I am looking for. However, I'd just like to check that what I want to achieve is feasible within PN before I start out. Please note - I am not asking how to do any of this. I just want to know if any of it is possible.
The markup looks quite a lot like wiki markup but with a lot more structures available. I'd like to be able to create an off-line WYSIWYM editor by adding a Python module to PN. The parsing program is currently written in Perl but I was planning to port it to Python anyway.
These are my issues:
(1) Would it be possible, using PyPN to create an additional menu bar to be displayed within PN or is the Tools collection the only way to run programs?
(2) I could use the clips collections for the markup but some of what I want to do does not quite fit that paradigm. For instance I want to prepend a character to every line in a highlighted block and indent the whole block. I'm not clear how far Python will interface with the existing functions in PN? Am I asking too much?
(3) I want to create a syntax coloring scheme. I've already done it within EditPad but that editor allows regular expressions to match patterns. That's quite important as my opening and closing tags are always the same so the pattern matching has to be quite sophisticated. From my cursory look at PN I can't see any regexs in the schemes.
(4) The final operation will be to save the file, send it to the parser for translation, create the output file, save it to a default folder previously set up by the user and then finally open the output file in a browser. I would imagin that this last bit will be easy as it can all be done by a Python script kicked off by clicking a button of some sort.
I hope I am not asking too much here but I am not minded to write an entire editor from scratch!
Thanks.
Rob Wheeler
Kent, UK