[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-users
Subject:    [ jEdit-users ] Hiding regions of the buffer
From:       Shlomy Reinstein <sreinst1 () gmail ! com>
Date:       2010-09-23 11:00:19
Message-ID: AANLkTinoLNiQkjvJuhPYdb63pUauGeCF2HwWZ9CC4ARn () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'd like jEdit to be able to filter out regions of the buffer, so that I
don't see them in the text area.
The main purpose of this is for preprocessor conditionals in C/C++. Patterns
like the following are quite popular in C/C++:

#ifdef WIN32
.. do something that works on Windows ...
#else
.. do something that works on other operating systems ...
#endif

If I work on Windows, it would be very helpful for me to see only the 2nd
line above, so that the rest of the text doesn't interfere while reading the
buffer (visually).
I'd like to be able to select a word (like WIN32) and have jEdit hide all
lines that do not exist when this word is not defined for the preprocessor.
This is probably a complex feature, and the main problem is that it can
easily conflict with the folding mode. But for starters, I'd like to see how
this really looks in tools (editors?) that already have such a feature. Does
anyone know of such a tool?
IDEs that I know (like Visual Studio) typically show all the text, but show
the text I want to hide in gray (as an indication that this code doesn't
really exist in the current configuration). I'd like to take this one step
further and completely hide this text.

Other uses of this feature would be similar to the Mylyn plugin in eclipse,
which hides text that has never been visited or is rarely visited.

Thanks,
Shlomy

[Attachment #5 (text/html)]

<div dir="ltr">Hi,<div><br></div><div>I&#39;d like jEdit to be able to filter out \
regions of the buffer, so that I don&#39;t see them in the text area.</div><div>The \
main purpose of this is for preprocessor conditionals in C/C++. Patterns like the \
following are quite popular in C/C++:</div> <div><br></div><div>#ifdef \
WIN32</div><div>.. do something that works on Windows \
...</div><div>#else</div><div>.. do something that works on other operating systems \
...</div><div>#endif</div><div><br></div><div>If I work on Windows, it would be very \
helpful for me to see only the 2nd line above, so that the rest of the text \
doesn&#39;t interfere while reading the buffer (visually).</div> <div>I&#39;d like to \
be able to select a word (like WIN32) and have jEdit hide all lines that do not exist \
when this word is not defined for the preprocessor.</div><div>This is probably a \
complex feature, and the main problem is that it can easily conflict with the folding \
mode. But for starters, I&#39;d like to see how this really looks in tools (editors?) \
that already have such a feature. Does anyone know of such a tool?</div> <div>IDEs \
that I know (like Visual Studio) typically show all the text, but show the text I \
want to hide in gray (as an indication that this code doesn&#39;t really exist in the \
current configuration). I&#39;d like to take this one step further and completely \
hide this text.</div> <div><br></div><div>Other uses of this feature would be similar \
to the Mylyn plugin in eclipse, which hides text that has never been visited or is \
rarely visited.</div><div><br></div><div>Thanks,</div><div>Shlomy</div><div> \
<br></div></div>



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

-- 
-----------------------------------------------
jEdit Users' List
jEdit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic