New StyledEdit features: word count & show document as read-only
|Reported by:||negusnyul||Owned by:||korli|
|Has a Patch:||yes||Platform:||All|
The attached patch adds two new features to StyledEdit:
- Word count: a new item in the Document menu, it shows the number of lines, characters and words of the current file.
- Show as read only: a new checkable item in the Document menu: if checked, all the editing functions are disabled. (However, the user still can save the document - this is NOT the 'read-only' file attribute, so the file won't be read-only, but I think this feature is useful when one doesn't want to modify opened files accidentally.)
I read & applied the coding style guide, so I think the code style is OK, and the patch adds very few lines of code, but if anything is wrong with it, please notify me.
(Note: This is my first patch, I did this when I first checked out the code from SVN and played around a bit with it.)