Styling Ranges of text

Hi,
I'm having problem with the TextArea- and/or
RichText-controls in Flex. I can't find any way to change the
background color or individual lines or characters in the control.
I've tried to apply styles to tags in the htmlText-property. But no
luck there.
Is it even possible to do this in Flex3?
Edit: What I'm trying to accomplish with this, is a kind of
ANSI-Graphics editor/viewer.
Thanks in advance
Patrik

You insert html code. I know this crude, but it works. Here
is a textarea what you want.
<mx:TextArea width="600" height="100" fontSize="16"
textAlign ="left"
textIndent="0"
leading="0"
wordWrap="true"
paddingLeft="0">
<mx:htmlText><![CDATA[<p>
Three methods for solving the quadratic equation are listed
above.<b>
<font color="#99ccff">With some color and
<u>underline</u>.</b></p>
<p> This is a paragraph. and more <b>This text
is bold</b>
<i>
This text is italic
</i>
</font>
</p>
This is <font color="#FF0000">HTML text</font>
in a <b>TextArea component</b>. Using the
<u>htmlText attribute</u> of the <font
color="#008800">TextArea component</font> you can use
basic HTML markup
<p>This is <b>some</b> content to
<i>render</i> as <u>HTML</u>
text.</p>
]]></mx:htmlText>
</mx:TextArea>

Similar Messages

  • Styling bullets in text using InDesign's bullets

    Having a problem with aligning bulleted lists that have multiple lines.
    What I want is the text to align but I also need the bullets to stay within the text.
    I tried changing "left indent" and "first line indent" but no result (see the attachment).
    Any help would be awesome.

    Change Text After to Tab ^t

  • Styling bullets in text without using indesign's bullets

    Having a problem with aligning bulleted lists that have multiple lines. I need the text to align but I also need the bullets to stay within the text...
    Any help would be awesome.

    Use Type menu>Tabs
    Or use Left Indent and Right Line Indent
    Or use Bullets and Numbering

  • Selecting a range of text in VB

    I'm looking for the VB equivalent of this AppleScript:
    select text from character x to character y of parentStory (where parentStory is the parent story of the current insertion point)
    I get the idea from looking at snippets here and there that VB does this by using a loop, so I've gotten as far as
    myWindow.Select parentStory.Paragraphs.Item(1), true
    which works well enough, but when I add this line:
    myWindow.Select parentStory.Paragraphs.Item(2), true
    Paragraph 1 gets deselected. So obviously I'm missing something about the true/false parameter.
    I know this is a newbie sort of question, but I've done enough AppleScripting to get the point that it's not necessary to select something before acting upon it. In this case, I need to show it to the user.

    Hi Robert,
    I have to correct myself. I see now that itembyrange IS part of the VB dictionary in ID2.0, it's just listed under Objects not Texts, where I was looking.
    But when I run your code, I get a runtime error: Object doesn't support this property or method. So I've probably fouled something up in the way I'm defining myWindow or parentStory. I will continue banging my head on this wall until something softens.
    Try to delete last .Item(1):
    myWindow.Select parentStory.Texts.ItemByRange( _
    parentStory.Paragraphs.Item(1), _
    parentStory.Paragr aphs.Item(2))
    Later I'll try to check right syntax for ID 2.0.x.
    robin
    www.adobescripts.co.uk

  • Alter leading of a range of text in a title?

    I thought you were supposed to be able to do this.
    How do you alter the leading of just two lines of text within a title text box without affecting the leading of all the other lines of text within the text box?
    I can alter the kerning of a few lines of text w/o affecting the other lines of text, but I can't to this with leading.
    Is this a bug? Is this not a feature? Am I doing something wrong?
    I select a couple of lines of text and then adjust the leading by changing the leading number. By doing this, however, the leading of the entire text box changes.
    Please help!
    thanks!

    Morty,
    So if I wanted to create 200 lines of rolling titles, I'd just create a super-long PSD file? 
    You are correct on creating a very vertical .PSD with your text. Let's just assume that you have an NTSC DV Project. In PS, choose Image New, and then the NTSC DV Preset (either 4:3, or 16:9) with guides. This will yield a 720 x 480 image. Reset your PS Colors to B/W. Go to Image>Canvas and move the marker to the top-center, then increase the vertical to no more than 4000 pixels and choose the black (should be "Background Color") Add/edit your text, as is required. I usually do the text in Word, or WordPerfect, just for SpellCheck, and Ctrl+C/Ctrl+V that into PS. If you have more pixels in the vertical, than you need, just Crop. Save_As a .PSD, to be Imported into PrPro as Footage, unless you have Layers, that you wish to animate independently - then choose Sequence. Once into the Project Panel, drag to the Timeline, and Keyframe Effect>Motion>Position. Done.
    I would like to see Titler grow a bit more robust too, but live fine with it, so long as I have my other Adobe (and some non-Adobe) programs handy. To me, each is just a "tool" in the "toolbox." I have requested full Grouping, SpellCheck and more typography tools. OTOH, if any of these munged up Titler, I would resend my requests in a heartbeat. I look at Titler a bit like I do NotePad - OK for simple stuff, but for wordprocessing I go go WordPerfect. Just another tool.
    Hope that helps,
    Hunt
    Message was edited by: Bill Hunt - added last thought and made two corrections.

  • How can I replace a text/range of text enclosed in a XML tag

    I want to replace a piece of text enclosed inside a XML tag in a text frame.
    In my input parameters, I have the In-design document page number, text frame UID in that page and the XML tag name inside that text frame
    which encloses my old text.
    what command/function/interface can I use which can help me to replace the existing text with the input text ?
    eg:
    [old text]  -----> [new text]
    where [ ] is XML tag with name tag1.

    After some trail and POC, I was able to write the below piece of code.
    This detects the starting and ending position of the marker and based on that we can replace the text inside it. Hope it helps.
    InterfacePtr<IDocumentSignalData> data(signalMgr, UseDefaultIID());
            if (data == nil)
                break;
            UIDRef docRef = data->GetDocument();
            InterfacePtr<IDocument> doc(docRef, IID_IDOCUMENT);
      IDataBase *db = docRef.GetDataBase();
      //Get the spread
      InterfacePtr<ISpreadList> spreadList(doc, UseDefaultIID());
      int32 spreadCount = spreadList->GetSpreadCount();
      for ( int32 spreadIndex = 0; spreadIndex < spreadCount; spreadIndex++ )
      // Get the spread reference
      UIDRef spreadUIDRef(db, spreadList->GetNthSpreadUID(spreadIndex));
      // Get the spread object
      InterfacePtr<ISpread> spread(spreadUIDRef, UseDefaultIID());
      int32 numberOfPages = spread->GetNumPages();
      for (int32 nPage = 0; nPage < numberOfPages; nPage++ )
      UIDList pageItemList(db);
      spread->GetItemsOnPage(nPage, &pageItemList, kFalse, kFalse);
      // Iterate the page items and save off the UIDs of frames.
      int32 pageItemListLength = pageItemList.Length();
      for (int32 j = 0; j < pageItemListLength; j++ )
      UIDRef pageItemRef = pageItemList.GetRef(j);
      InterfacePtr<IFrameType> frame(pageItemRef, UseDefaultIID());
      if( frame->IsTextFrame() )
      //Now trying to get the marker position for XML tag
      TextIndex startPos=0,endPos=0;
      IXMLReferenceData *xmlReferenceData= Utils<IXMLUtils>()->QueryXMLReferenceData(pageItemRef);
      XMLReference ref = xmlReferenceData->GetReference();
      //IIDXMLElement *element = ref.Instantiate();
      InterfacePtr<IIDXMLElement> element(ref.Instantiate());
      UID tagUID = element->GetTagUID();
      WideString elementName = element->GetTagString();
      for(int32 i=0; i < element->GetChildCount(); i++)
      XMLReference childRef = element->GetNthChild(i);
      InterfacePtr<IIDXMLElement> child_element(childRef.Instantiate());
      tagUID = child_element->GetTagUID();
      elementName = child_element->GetTagString();
      int32 index=0;
      Utils<IXMLUtils>()->GetElementMarkerPositions(child_element,&startPos,&endPos);
      startPos += 1; // move forward to exclude the starting tag
      } // iterate pages in spread

  • Find & Replace Text - Styling Problem (CS5 Mac)

    Hi everyone,
         Is there a way when finding and replacing a text string to style the block of copy. My problem is that I have some color codes given by the customer that now need to be converted to our internal color matches on our production drawings.
    The original string of text looks like this:
    Holder: P1 (Metallic Silver)
    What I’m getting when I go to replace this string is:
    Holder: Natural Satin
    What I want is:
    Holder: Natural Satin
    I do not want the replaced text to be italicized. I'm thinking since the original string ends with an italic style that the replacement string is also italicized. There are about 50 pages of drawings with about 10 colors on the job and some pages have them entered in more than one place. So that's a minimum of 500 entries and defititely more considereing the multiple places these are called out. I'd really rather not have to copy and paste all of these by hand. I'm use to FreeHand, which would respect the font styling of pasted text in the find and replace diaglog.
    Any help would greatly be appreciated. Work around if it cant be done natively?
    Thanks

    Thanks Monika,
         I downloaded that earlier today and yes realized that the beta is over after installing it. I joined the mailing list for updates, but it looks like the script hasn't been updated in nearly 3 years. I'm not sure if something in one of the newer versions of Illustrator broke the script and the script writer decided not to update it anymore? I guess I could email them, but seems weird that if there were an updated version that it would be posted on the site also. I'd hate to pester the author. Seems like an extremely useful tool if it would do what I need. I suppose it couldn't hurt to ask anyway. I don't mind supporting developers too by paying for the script. This is something that I use all the time. I've spent about an hour and a half copying and pasting these text blocks for something that truly take about 2 minutes to do with a proper find and replace.
    I do appreciate your input though, it's greatly appreciated.

  • Incorrect bounding rectangle height after styling

    I am experiencing with incorrect bounding rectangle height when I set the background color for text in RichEditableText field. I have actually custom styled the RET field with following:
    lineHeight: 49;
    baselineShift: 11;
    firstBaselineOffset: lineHeight;
    verticalAlign: top;
    When I try to change the background color for certain range of text it doesn't cover the entire line height, although the selection covers the entire line height. Is there any way to increase the height of bounding rectangle or any other workaround to this please?

    1. I am able to return the TextFlowLine for each line in para but I have seen that some TextLine are marked as INVALID due to which I am unable to get their atom locations. I have tried to force the validity of TextLine to recreate the line but that doesn't work for some lines. Is there any work around to this?
    When the contents of the TextBlock are modified, the Flash runtime marks affected text lines, the previous line, and all following lines as INVALID. So I think you may want to get the lines
    [When you try to override TLF source code] after ContainerController.updateCompositionShapes 
    [When you just take advantage of offical TLF library] in the event handler of UpdateCompleteEvent.UPDATE_COMPLETE.
    2. The highlighter rectangle which I have created, have tried to placed it as a child element of TextLine. Due to this, the highlighter rectangle appear infront of the TextLine. I have tried to positioned it at 0 location using addChildAt but that doesn't seems to work. Is there any work around to this also please?
    In TLF code, we creat Shape as the child of the container to draw the selection, because TextLine is transparent.

  • Where are text annotation tools?

    I'm using Reader 10 to edit a PDF that is enabled for commenting. The Adobe Help shows that there are 10 tools under "Annotations," but my instance shows only 2 (sticky note and highlighter). I can't find a way to add or delete text. How do I find those other text-editing tools?

    Thanks, George.  The file is in fact enabled for commenting. The problem seems to have something to do with Acrobat versions. I post the details here, hoping that maybe somebody from Adobe scans this forum. I doubt that my experience is the intended behavior of Reader.
    - The file was sent to me by a client who enabled it for commenting (asking me to edit it).
    - I opened the file with Reader 7, and the file properties showed that it was *not* enabled for commenting.
    - A colleague who received the same file opened it in Acrobat Pro 10 and found that it *was* enabled for editing, as the client claimed.
    - I downloaded and installed Reader 10 and opened the file. The file properties showed that it *was* enabled for commenting. (Note that this is the same file that Reader 7 said was not enabled for commenting.) However, in Reader 10, only the highlight and note tools were offered (not any text editing tools).
    - So I moved the file to another computer that has Acrobat Pro 10 installed and opened it. Acrobat Pro 10 showed that the file is enabled for commenting and the full range of text editing tools is available.
    In short, Reader 7 and 10 screwed up.

  • How do I get this loop to give me numbers within a range?

    So for a school assignment I need to get a loop to display all the numbers in a certain range. This range is input by the user with a starting number and an end number. For some reason when i put the code in all its giving me is the end number and not the numbers between the start and end. I was wondering if someone could show me what to tweak to fix it. This is the code so far...
    // Add event listener
    submit_btn.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(event:MouseEvent):void {
    // Declare Variables
    var startInput:String;
    var endInput:String;
    var startNum:Number;
    var endNum:Number;
    // Get Start Value from Text Field
    startInput=start_txt.text;
    // Convert value from string to number
    startNum = Number(startInput);
    // Get End Value from Text Field
    endInput=end_txt.text;
    // Convert value from string to number
    endNum = Number(endInput);
    // For loop
    for (var range:int = startNum; range <= endNum; range++ )
        response_txt.text = "The numbers between the inputed integers are " + range + "!";
    I've also include the actual program so you can see it if you want to test it..
    Thanks for your help,
    The Student of Flash

    Being that you're a student and this is an assignment, I have to honor what I believe the intentions of the assignment are, which is for you to solve it and get it working, not for someone else to hand you the solution.  But I can offer a hint...
    It's not a question of slowing it down, it's a question of controlling what gets written to the output textfield when.  If you did the trace you saw that it was rewriting the textfield in each loop.  So just as a hint, look up the appendText() method of the TextField class.

  • Can I format a paragraph in illustrator, with multiple text sizes?

    Hi,
    I have a number of paragraphs in illustrator that have the following...
    a title = Arial bold 18 pt.
    body text =Arial reg 14 pt.
    and indents with bullets
    It seems that illustrator only supports one font, size, color, etc. for each Paragraph style. I would like to be able to set the title to Arial bold, 18pt, Blue, and the body text to Arial regular, 14pt, white, with different leadings, within the same style setting. Does anyone know if this can be done?
    Thank you in advance.
    Knewt

    What are you guys talking about? Since when does InDesign support multiple text attributes for a single Paragraph Style? At least in CS3 InDesign's Paragraph Styles have settings for nested Character Styles and drop caps, but you still define one set of text attributes for the Paragraph Style itself.
    In principle it's basically the same in Illustrator. If you want to actually have multiple text treatments in one paragraph, you apply Character Styles to text ranges within the paragraph. Illustrator's implementation of it is pure crap in that inheritance and style redefinition does not work correctly, but the fact remains you certainly can have multiple text treatments in one paragraph, but it is not done with a single Paragraph Style. If using Styles (as you should) it is a matter of nesting Character Styles within paragraphs that have Paragraph Styles applied.
    But I strongly suspect that what Mr. Harley is describing is not really a single paragraph at all. He wants different text sizes, different indents, and bullets. That clearly involves multiple paragraphs.
    Harley, in part of your description of what you want, you seem to be referring to a single textframe object as a "paragraph." A paragraph is a range of text separated by a carriage return. When you define and apply a Paragraph Style, the carriage return defines the range of the Style. When you define and apply a Character Style, the selected range of characters define the range of the Style. You can use multiple Character Styles within a paragraph that has a Paragraph Style applied.
    But you are talking about the need to define several Paragraph Styles to use in one block of text, or "story" (one or several textframe objects). You just need to define three Paragraph Styles:
    Heading: Arial Bold 18 pt.
    Body: Arial Regular 14 pt.
    BodyBullet: Same as Body, but with different indents. Set a tab at the bullet location and at the left indent. (You type your bullet characters; you don't just select "bullets" from a setting.)
    Type all your text, using carriage returns as you would expect. Each carriage return marks the beginning of a new paragraph. (This is as true in Illustrator as it is in InDesign, Word, or anything else.) Click inside a paragraph and apply the appropriate Paragraph Style.
    Now suppose you want to use a convention within your document that emphasizes certain words or phrases by painting them magenta instead of whatever color is defined in the Paragraph Style. Create a Character Style. Name it Emphasis. In that Style, set the character color to magenta. Now swipe across a word in one of your paragraphs and apply the Emphasis Character Style. The whole paragraph still has the Paragraph Style you applied to it. But now the color of a few characters is overridden by the Character Style you have applied to those characters.
    Again, like many things in Illustrator, its implementation of Paragraph Styles and Character Styles is very sloppy compared to other programs. But it is not true that 'InDesign can apply multiple text treatments in a single Paragraph Style, and Illustrator can't.' At least not up to CS3.
    JET

  • Is there any report to get the header/item text at GR stage together?

    Hi gurus,
    Is there any report to get the header/item text at GR stage together with a date range?
    at the point of goods receipt?  Or a report that could be run to search for header/item text at GR stage together with a date range?
    Text that was entered at the point of goods receipt?

    Hi
    Check MB51 report with posting dates for materials/vendors and use the display variant document header text (which is GR header text). I hope this is the one you are looking for.
    Thanks

  • Pasting text from word replaces Keynote styles

    I get documents that are styled in Word that I have to convert to Keynote. Even though my text boxes are styled in the Master Slides, when I copy and paste text from word it comes in with all of word's formatting and disregard's Keynote's styling for that text box. I tried to convert the word docs to rtf or just plain text, but the text just imports without Keynote's styling applied to it. It would be very tedious to have to style each text box as I bring it in to Keynote. Does anyone have any suggestions to make the workflow less painful?
    Thanks
    randini

    Welcome to the discussions, marc01.
    I don't have Omni Outliner to test with, but that does sound like something that's worth looking into. Send feedback to Omni at their site and to Apple with this link.
    http://www.apple.com/feedback/keynote.html

  • Date Range Column Selection

    Hi world,
    I've encountered rather weird behavior with Numbers 2.0.3 (iWork '09, update 3 or whatever they've called it). When using the AVERAGEIFS() function, when I select a range of dates to use as a conditional, the range also selects the header cell. All the rest of my ranges (of text and numbers) do not include the header cell. Is this by some kind of design (that I'm not getting) or have I discovered a bug?
    Here is a file that demonstrates this:
    http://files.me.com/link.dupont/6wx2xe.numbers.zip

    Hello
    Most of the time, it's useful to write formulas matching the application's required syntax which is:
    AVERAGEIFS(avg-values, *test-values, condition*, test-values…, condition… )
    In your formula you wrote:
    avg-values: Data::B +is a range (the column A in table Data)+
    I don't know how you may hope to get an average of city names !
    test-values: A2 +is a single cell+
    condition: MONTHNAME(MONTH(Data::A)) +this is not a condition and the fonctions can't apply to a range+
    test-values: B1 +is a cell (must be a range)+
    condition: Data::C +is a range (the column C in table Data but it's not a condition)+
    Here:
    in Data column D the formula is:
    =MONTHNAME(MONTH(A))
    in Table 2 :: B2 the formula is:
    =AVERAGEIFS(Data::C,Data::D,"="&B$1,Data::B,"="&$A)
    Yvan KOENIG (VALLAURIS, France) mardi 6 octobre 2009 09:59:51

  • Selecting non-consecutive text in Safari text boxes?

    I've been trying to find a way to highlight/select different ranges of text in Safari without luck; I know that selecting consecutive text can be done by holding down "shift", but is there any way to do it with non-consecutive text? TextEdit is able to do this -- I can select a word in one paragraph, hold down the "command" key, and then separately highlight a word or sentence in another paragraph.

    Apple - Safari - Feedback

Maybe you are looking for

  • Questions on Logical corruption

    Hello all, My DB version is 10g+ - 11.2.0.3 on various different OS.  We are in process of deploying RMAN on our system and i am having a hard time on testing/get a grip around the whole logical corruption... from what i understand(please correct me

  • Error in PO Distribution lines. cannot proceed with PO creation.

    Hi All, We have recently upgraded to R12 from 11.5.9 in Test environment. Due to upgrade all the purchasing setup which was there in 11.5.9 is now available in R12. We are creating a Standard Purchase Order. I have entered the header & line level det

  • TXT Files in Design View

    I use a lot of TXT files as INCLUDE files in various pages. When I used Dreamweaver 4 I had no problem editing a TXT file just like any HTML file and using DesignView. When I get going with Dreamweaver MX2004 I figured out how to do it. But I had to

  • Photos in iPhoto / iWeb

    If I've used a photo in iWeb from iPhoto and then delete the photo from iPhoto, does the photo remain in iWeb or does it become a blank space?

  • IsolatedClientSession (10.1.3) vs. custom session broker

    Hi, Doug. You may still remember the design of the custom session broker originated from you in our project. Basically, we dynamically partition the classes during the session initiation time such that all the read-only classes (reference data) are p