Highlight words

I need to highlight some words (search results) in TLF text editor. I am using RichEditableText.
Please tell me how I can highlight more than one word at different places (in several paragraphs or spans).
I tried to use selectRange() function in RichEditableText. but it highlights only one occurence.
Thanks.

Hi,
The same kind of stuff I have performed in my application . I am fully agreed with Robin's point but to be more explanatory you can do the following :
1. Find the begin and end of the text to be highligted. You can do it by using selection manager of text flow by the properties absoluteStart and absoluteEnd of selection manager
   like 
     var _selMgr:ISelectionManager = textFlow.interactionManager;
if(_selMgr.hasSelection())
                if(_selMgr.focused)
                    var begin:Number = _selMgr.absoluteStart;
                    var end:Number = _selMgr.absoluteEnd;
2. Once you get the begin and end you can get the start and end index of TextLine of the text flow like
   var startTextFlowLineIndex:int = textFlow.flowComposer.findLineIndexAtPosition(begin);
                    var endTextFlowLineIndex:int = textFlow.flowComposer.findLineIndexAtPosition(end);
and then get textline as
var textFlowLine:TextFlowLine;
textFlowLine = textFlow.flowComposer.getLineAt(startTextFlowLineIndex);
from text flow line you can get text line using
   textFlowLine.getTextLine()
methode
3. Get the bound of the first and last atom of the text lIne to draw a rectangle as
          var startbounds:Rectangle = textLine.getAtomBounds(textLine.getAtomIndexAtCharIndex(begin));
                var endbounds:Rectangle = textLine.getAtomBounds(textLine.getAtomIndexAtCharIndex(end));
Next very easy you can use sprite's graphic and drwa the rectangle.
Regards,
Gaurav Pandey

Similar Messages

  • What is the shortcut key to highlight words in adobe reader in macbook pro

    what is the shortcut key to highlight words in adobe reader in macbook pro?
    Shift + U is not working
    how can i change shortcut key?

    I don't believe there is a keyboard shortcut available for that feature. But I believe if you click-select the topmost chapter, and Shift-click the bottommost chapter, it should select them all.
    Other shortcuts for books can be set up in Edit > Keyboard Shortcuts in the Panel Menus product area. There are no default shortcuts in that area.

  • My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words.

    My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words and looks them up via dictionary. I currently have a wireless mouse connected and I am still having the same problems.
    I fee like I may have a virus or my laptop is perhaps being accessed remotely. All of the sharing options are unchecked.
    HELP PLEASE
    Very worried!!

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • I am looking at a web page with highlighted words that are links that open new windows. I don't even click on them and they upen as I pass over them accidentily with the cursor. extremely annoying!what is it called and how can I remove this 'feature'

    it is usually one highlighted word that when touched, opens up a small window of related companies or info or websites that I might be interested in. one word "presenter" was highlighted, touched it with my cursor, and I think caught a damaging virus.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode].
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > '''Use hardware acceleration when available'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]. All these settings/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme or hardware acceleration is causing issues.

  • Change color for highlight words

    I'm using the highlight words column attribute for a report with a search parameter. I was wondering if there is a way to change the color of the text that is highlighted? The html that is generated wraps the highlighted word with <span style="font-weight: bold; color: red;">search string</span>

    sql functions like INSTR, SUBSTR, and DECODE are good for this...
    select decode(instr(upper(emp.ename),upper(:P1_SEARCH)),
    0, emp.ename,
    substr(emp.ename,1,
    instr(upper(emp.ename),upper(:P1_SEARCH)) - 1)
    || '<span style="color:blue;">' ||
    substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)),
    length (:P1_SEARCH))
    || '</span>' ||
    substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)) + length(:P1_SEARCH) )) my_column_alias
    from emp;
    ...hope this helps,
    raj

  • I have highlighted words in an .iba file. Now I need to increase the space before (and/or after) the paragraph it's contained in. If I increase the space after, the height of the highlighting increases also. Is there any way around this?

    I have highlighted words in an .iba file. Now I need to increase the space before (and/or after) the paragraph it's contained in. If I increase the space after, the height of the highlighting increases also. Is there any way around this?

    http://www.apple.com/feedback/kaywerty wrote:
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
    It's not possible.
    Suggestions here -> Apple Product feedback

  • Change highlight word color in a report

    Hi All,
    I have question regarding highlighting search words in a report. I used APEX's "Highlight Words" column attribute to achieve this. My search string is a list of words 'table,chair,sofa' It works perfectly fine showing the matching words in Red color. But I want to change the color to yellow. If it's a single word then I think I can do it using the replace SQL function and change the color using the <span Style...> But in my case I have a list. Any advise appreciated...
    Thanks in advance.

    Another option would be to include relevant SQL to do your highlighting. E.g.
    select replace(replace(object_name,'table','&lt;span style="background-color:yellow"&gt;table&lt;/span&gt;'),'chair','&lt;span style="background-color: yellow"&gt;chair&lt;/span&gt;') object_name from bits_of_furniture
    It's certainly not pretty but the above would highlight all tables and chairs in yellow. What you could do is put together a PL/SQL function which accepts as parameters: the string to make replacements in, a comma-separated list of terms to replace and the colour to highlight with. So your SQL might become:
    select highlight(object_name,'chair,table,sofa','yellow') from bits_of_furniture
    All you have to do is build the highlight() function... :)
    Andy

  • How to remove highlighted word ads on web pages. Tried everything

    Hi everyone. Haviing a problem with highlighted words ads on web pages. Tried everything. Went safari / preferences / extensions. Removed everything. The problem remains. Can anyone help me on this one?

    you may have Genieo installed
    see
    http://www.genieo.com/faq/#q20
    Note that, if Genieo is installed, using the recommendations that Genieo themselves provide on that page will not remove it. They cannot be trusted, and their uninstaller is known not to remove everything. Proper Genieo removal instructions can be found in my Adware Removal Guide.
    I don't believe this is a Genieo problem, though. Genieo usually just hijacks the search engine. It doesn't cause the random underlined words that cause ads to pop up. That's going to be caused by some other adware, probably also described in my Adware Removal Guide.
    (Fair disclosure: The Safe Mac is my site, and contains a Donate button, so I may receive compensation for providing links to The Safe Mac. Donations are not required.)

  • How to remove highlighted word on safari which cause pop-up ads

    Hello
    How can I remove highlighted words in safari? it also pop up ads when I move marker to these words. I am attaching a picture which shows clearly what i mean.
    after every highlighted word it can also be seen a green symbol.
    waiting eagerly for your replu

    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • Ibooks hangs when I try to highlight words.

    When I preview my ibook, ibooks hangs when I try to highlight words only a page with an interactive image?

    I'm having the same problem, but my page does not have any interactives.
    When I try to preview the book on my mac instead of my IPad IBooks quits unexpectedly.

  • Mail underline or highlight words

    Can you underline or highlight words in the text box of mail.

    Yes. After you select your text to format it - Tap the arrow that points to the right in the next black box that pops up and then another box pops up with a B/I/U - bold, italics and underline. Tap that option to format your text.
    There are a couple of options to select text - Select and Select all - so experiment to see how it works.

  • How do you highlight words

    How Do you highlight words ??

    Select the text.
    Click the Character Background Fill color rectangle..
    Click on a color...
    And your text is highlighted...
    Jerry

  • Color -  highlight words

    I'm using the highlight words column attribute for a report with a search parameter. I was wondering if there is a way to change the color of the text that is highlighted.
    Thanks in advance,
    Sam

    Sorry about that! This issue solved using JavaScript in the morning.
    I thouhgt I am in the other post:
    error message color
    When you click, you will see red error message. I would like to know how to get the red color error message in my application.
    Thanks for your patience,
    Sam
    Edited by: early bird on Jun 17, 2009 12:36 PM

  • Highlight words in link column..how to retain case?

    I learned a lot from this thread... Highlight Search results within a linked column ...and I have the solution implemented and working perfectly...almost.
    My query is essentially as follows...
    select foo, bar, replace(upper(PROJECT_NAME),upper(:P2_SEARCH),'<spann style="font-weight: bold; color: red;">' || :P2_SEARCH || '</span>') as PROJECT_NAME_LINK
    from Projects
    where upper(PROJECT_NAME) like '%' || upper(:P2_SEARCH) || '%';
    Without the search and highlight words enabled...the result is essentially...
    foo1 bar1 ABC123
    foo2 bar2 EFG456
    With the search and highlight words enabled...the result for searching on "a" is...
    foo1 bar1 aBC123
    My small remaining issue is that the replaced and highlighted search term is always inserted in the case (upper/lower) that the search term was entered. In contrast, the default method utilized by ApEx seems to be able to retain the case when highlighting the text.
    Any idea how I can retain the case within my highlight words link column?
    Any idea how the ApEx function does this? (maybe the concept can be applied)
    Matt

    I talked to Raj who posted the original solution to my issue in the above referenced thread from 2001.(apparently this forum rendered out some of his posting which made it hard to understand...)
    select decode(instr(upper(emp.ename),upper(:P1_SEARCH)),
    0, emp.ename,
    substr(emp.ename,1,
    instr(upper(emp.ename),upper(:P1_SEARCH)) - 1)
    || '<spann style="color:blue;">' ||
    substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)),
    length (:P1_SEARCH))
    || '</spann>' ||
    substr(emp.ename, instr(upper(emp.ename),upper(:P1_SEARCH)) + length(:P1_SEARCH) )) my_column_alias
    from emp;
    (be sure to correct the spelling of "spann")
    This solution works great...thanks Raj!
    Matt

  • Highlight Words After Querying

    I have a report in which I query several columns. I want to be able to highlight the word I'm querying wherever the word is found (same functionality you have in this forum when clicking on "search"). I think the answer might be in:
    Home>Application Builder>Application 103>Page Definition>Report Attributes>Column Attributes>column formatting>highlight words
    I tried to put the item name and then the syntax, but it doesn't seem to work.
    Thanks,

    Hi,
    Home>Application Builder>Application 103>Page Definition>Report Attributes>Column Attributes>column formatting>highlight words
    Then “&P101_NAME.” for instance. Do not forget “dot” at the end.
    P101_NAME should be replaced by your item which you are in attributes!
    Konstantin
    [email protected]

  • Highlight Words in TextFields

    Hi there,
    I'm using APEX 2.1.
    Is there a possibility to highlight words in a TextFiled (inside a Tabular Form)?
    Thanks
    Johann

    Hmm, I didn't realise that the tabular forms overrode those css settings...sigh
    What about creating the tabular form as an updateable sql report.
    eg.
    select     "DEMO_CUSTOMERS"."CUSTOMER_ID" as "CUSTOMER_ID",
    APEX_ITEM.TEXT(
    2,
    CUST_FIRST_NAME,
    null,
    null,
    case when instr(upper(CUST_FIRST_NAME), upper(:P2_NAME_SEARCH),1)>0 then 'style="background-color:yellow;"'
    else null end
    ) FIRST_NAME,
         APEX_ITEM.TEXT(
    2,
    CUST_LAST_NAME,
    null,
    null,
    case when instr(upper(CUST_LAST_NAME), upper(:P2_NAME_SEARCH),1)>0 then 'style="background-color:yellow;"'
    else null end
    ) last_NAME,
         "DEMO_CUSTOMERS"."CUST_CITY" as "CUST_CITY"
    from     "DEMO_CUSTOMERS" "DEMO_CUSTOMERS"
    where (instr(upper(CUST_FIRST_NAME||CUST_LAST_NAME), upper(:P2_NAME_SEARCH),1)>0 or :P2_NAME_SEARCH is null
    I have an example at
    http://apex.oracle.com/pls/otn/f?p=34581:2
    username test: password: testing.
    I didn't bother writing a procedure to store updates and all that and I only made the name fields enterable. There must be an easier way though.

Maybe you are looking for

  • IPhone 3G and Outlook 2007 sync Vista x64

    Hi, I pre-ordered two iPhone 3G a week ago (still not received them) and then went online to read user opinions about it. and, honestly, the scared me. First, battery life. I'm Samsung SCH-i760 (Verizon) smartphone user and I'm pretty happy with it.

  • Using lightning lead to view I player on tv

    can the lightning lead be used to view  the likes of Iplayer on your IPad Air to a TV USB socket, a non apple TV, I have never tried it, I use a Dongle and it is fine, but I was asked this question and looking through my manual do not see a reference

  • BT Cloud will not start up

    Yesterday, I stopped BT Cloud from starting up when pc started up via msconfig startup. Today, tried to start bt cloud and got this msg 'Could not connect to the service. Check your network connection.' i reticked bt cloud in msgonfig srartup, but go

  • How long does it usually take to upgrade macair 13 to OS X Mavericks? You see, I've started my upgrade at around 11pm last night, it's now 10:20am but it seems not done yet. Thanks

    Hi there, Peace & good day! May I seek help re: my concern - you see, I want to upgrade my Macair 13 to OS X Mavericks. Following the instruction found on Apple website, I installed OSX Mavericks starting at around 11pm last night, it's 10:25am now,

  • Sorting in SSRS

    I am just going through an old post as I need a similar sorting for my report. Old post - http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/5d64fee9-4194-4666-9518-f2133975a52a I need it to display 1 2 3 3A 3B 4 5A 5B etc.....