Regex Outline Plugin [message #851076] |
Fri, 20 April 2012 12:16 |
Eclipse User |
|
|
|
Hi everyone,
I've been wanting to switch to eclipse from notepad++ for PHP development for a while, but one major hurdle stands in my way. I spent all day yesterday looking for this functionality in eclipse but was unsuccessful.
Here's what I'm trying to find.
In Notepad++, there is a plugin called Function List that I couldn't live without (or couldn't work without anyway). The way it works is you can define different regular expressions that will appear in the outline.
For example, most of the websites I work with are styled as follows:
$page = (isset($_GET['page']) ? $_GET['page'] : 'home');
if($page == 'home'){
// homepage code goes here.
}
if($page == 'another_page'){
// another page's code goes here
}
// etc.
This will give me an outline with:
+ PAGE
-- home
-- another_page
See attached screenshot.
I can click on a page in the outline to get to it rather than scroll through thousands of lines of code to find what I need.
I can also put what I call comment bookmarks which I also wrote regular expressions for, and find those instantly as well.
So my question is, is this functionality available in eclipse?
The only thing I was able to find was someone else who gave up looking for this and just uses dummy functions like
to make it show up in the outline, but I'd rather not do this, as it looks dirty (maybe I'm just OCD about these things).
Thanks is advance for your replies!
(hope I'm not in the wrong forum, I am a newcomer though)
|
|
|
Powered by
FUDForum. Page generated in 0.07443 seconds