Highlight a text in an editor [message #226436] |
Wed, 08 August 2007 12:53  |
Eclipse User |
|
|
|
Hi,
I'm writing my own Editor.
after selecting text I want to highlight all its occurrences in the file
(just like the Java editor).
I don't have an IFile resource, only an IDocument.
any ideas ?
|
|
|
|
|
|
|
|
Re: Highlight a text in an editor [message #228726 is a reply to message #226793] |
Wed, 22 August 2007 05:33  |
Eclipse User |
|
|
|
Nir wrote:
> Ed Merks wrote:
>
>> Dani,
>
>
>> I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=199419
>
>
>
>> Daniel Megert wrote:
>>
>>> Ed Merks wrote:
>>>
>>>> Dani,
>>>>
>>>> It would be good if folks were more easily directed for how to
>>>> search the archive as part of being directed where the newsgroup is
>>>> located. For example, wouldn't it be good if this link has a search
>>>> button *before *the write button?
>>>>
>>>>
>>>> http://www.eclipse.org/newsportal/thread.php?group=eclipse.n ewcomer
>>>>
>>>> Then someone would be more inclined to do the following search
>>>> rather than ask a recurring question:
>>>>
>>>>
>>>
> http://www.eclipse.org/search/search.cgi?q=highlight+text&am p;cmd=Search%21&form=extended&wf=574a74&ps=10&am p;m=all&t=5&ul=%2Fnewslists%2Fnews.eclipse.newcomer& amp;wm=wrd&t=News&t=Mail
>
>
>>>>
>>>>
>>>
> < http://www.eclipse.org/search/search.cgi?q=highlight+text&am p;cmd=Search%21&form=extended&wf=574a74&ps=10&am p;m=all&t=5&ul=%2Fnewslists%2Fnews.eclipse.newcomer& amp;wm=wrd&t=News&t=Mail>
>
>
>>>>
>>>>
>>>> It would make sense for this page to encourage searching as well:
>>>>
>>>> http://www.eclipse.org/newsgroups/
>>>>
>>>> And for this page to include a link for searching before the link
>>>> to the newsgroup itself:
>>>> <http://www.eclipse.org/newsgroups/index_project.php>
>>>>
>>>> http://www.eclipse.org/newsgroups/index_project.php
>>>>
>>>> Do you think we should open a bugzilla feature request for the
>>>> website(s) to try to guide folks so that they will "search first
>>>> and ask questions later"?
>>>
>>>
>>> That wouldn't hurt ;-)
>>>
>>> Dani
>>>
>>>>
>>>>
>>>> Daniel Megert wrote:
>>>>
>>>>> Nir wrote:
>>>>>
>>>>>> Hi,
>>>>>> I'm writing my own Editor.
>>>>>> after selecting text I want to highlight all its occurrences in
>>>>>> the file
>>>>>> (just like the Java editor).
>>>>>>
>>>>>> I don't have an IFile resource, only an IDocument.
>>>>>>
>>>>>> any ideas ?
>>>>>
>>>>>
>>>>>
>>>>> Check the archive. This has been answered many times.
>>>>>
>>>>> Dani
>>>>
>>>>
>>>>
>
> I know about the search system, yet I couldn't find any useful
> information there.
>
> all I saw there was a suggestion to use annotation, but from what I
> gather annotations are on the side ruler and I want to mark the text
> itself.
Wrong. Annotations are on the document and can appear at many different
places, e.g. inside text like the warning and error squiggles.
Dani
>
> so, does anyone know how to do this without annotations ?
> (or have an example of how to do this with annotations)
>
> thanks.
>
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08557 seconds