[USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
3 Attachment(s)
This took a while to create. I used a list someone provided for another text editor a long time ago and converted that over to EditPlus for my liking. Since then lots had been added and I was missing a lot of functions and such that should have been highlighted so I decided to get this stuff up to date.
This tutorial was done using EditPlus Text Editor v2.31 (488). If you're not using that exact version, things might be a bit different from you. Hopefully not too much. How to:
Any questions, feel free to ask. |
Re: [USEFUL] Syntax Highlighting and More for EditPlus
Updated:
|
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
Updated:
|
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
Could you show the text of a highlighted code?
|
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
|
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
Great work, bl4nk! Thanks!
Is there a way to make the function list (Ctrl+F11) work on SourcePawn as well!? I'm having great difficulty with it, since it doesn't have the work "function" before the actual functions. I've tried using: Code:
^(native[ \t]|public[ \t]|static[ \t]|stock[ \t]|forward[ \t])?[ \t]*(.*)[ \t]\(.*\)[\t]{Does anyone have an idea on how to improve this!? Make a better regexp to match only function headers!? Thanks in advance! |
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
Quote:
|
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
I was aware of the date of the thread when I posted, but it seemed to me that it would be better to post it here than to create a whole different thread just for the simple question.
And switching to a whole different program isn't much what I intent to do. But thanks anyway. Well, nonetheless my question is a matter of getting a better function prototype detection with regexp. That can be used by any program, really. |
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
Sorry, but I've abandoned using EditPlus in favor of Notepad++ and Sublime Text.
|
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
Sadly I think it's gonna be hard to implemment a decent Function list pattern in Regular Expression for EditPlus, since it still uses a very rudimentar version of regexp and it's full of restrictions.
Since SourcePawn doesn't have a keyword for the function prototype as we see in pretty much all other languages, it's gonna be really hard. I had to come up with a regexp that would negate all the control statements (if, for, while etc.). That could be done on Sublime Text 2, but I doubt it will ever be possible on EP. It's still a very good code editor. The seamless browser is very usefull for web applications and it's one of the most customizable editors around. It's a shame the developers didn't update it in such a fashion to stay competitive. :\ |
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
how to update stx? it's been outdated little.
|
Re: [USEFUL] Syntax Highlighting and More for EditPlus (Updated 4/7/08)
Quote:
|
| All times are GMT -4. The time now is 18:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.