I'd like to highlight titles in my text like this:

enter image description here

I'm doing that by adding a blue rectangle behind the text, but every time I change the text which is 16 pages long I have to go and move the placement of all these title boxes. Can I add it so that its attached to that line of text?

Turns out you can do this (sort of) using appearance attributes. The caveat is the lines of text have to be their own text elements rather than a character selection.

How to make the boxes

  1. Open the appearance panel, Window > Appearance
  2. Double click Characters to access the character appearance
  3. Set the Fill to your foreground color
  4. Click Type to get back to the text element
  5. Add New Fill (bottom left hand corner of the the panel)
  6. Set the new fill to your background color
  7. With the new Fill selected, Add New Effect > Convert to Shape > Rectangle...
  8. Set the Rectangle to whatever you want, as long as size is relative it will reflow to your text.

You should have something like this,

Finshed Sample

It also works accross lines,

Two line Sample

Here's my appearance settings for the text elements,

Appearance Panel Settings

Pro Tip(s)

  • You can save as a Graphic Style to apply it to any element and synchronise any changes you make to the style.
  • You can do other cool effects with this like capsules using different shapes (e.g. Rounded Rectangle)

Capsule Sample

  • 1
    Excellent first answer, Ben! Welcome to GD.SE! – Vicki Dec 17 '15 at 0:58
  • 1
    Thanks @Vicki! Figured I read enough Stack Exchange articles I should write some answers when I know them :) – Brynn Dec 17 '15 at 1:33

I agree, I don't think this is possible in AI. Quite easy to do in InDesign, and you will be better off in the short- and long-term learning even the very basics of InDesign if you're working with multi-page documents. Using Illustrator is only going to cause you headaches (like the one you're posting about here). The time you spend learning a few simple thing in InDesign will be well worth it! And honestly, many of the tools/commands/functions in ID are very similar to AI. There are also many free tutorials all over the web that can get you up and running in very short time.

Good luck!

  • I wish you could have written an answer for inDesign that is what I am looking for! – lharby Jun 19 at 17:14

As far as I know, this is impossible in Illustrator, since it's meant for vector-related work. Possible workaround would be doing it in inDesign, using styles. Chceck THIS link Good luck!

  • Probably sensible, I have absolutely no idea how to use indesign though. – Tom Mar 15 '15 at 17:18

protected by Community Mar 21 at 15:09

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.