1

I want to focus/highlight part of text(marked or selected in some other way) as shown in the picture(selected texts stays as it was but other text is dimmed)

Maybe there is some way or some package to get such effect: Highlighted text

  • Could you please clarify the question? What is it you want to do? – Dan Oct 12 '15 at 14:59
  • I want to focus/highlight part of text(marked or selected in some other way) as shown in the picture(selected texts stays as it was but other text is dimmed) – bruce Oct 12 '15 at 15:24
  • Could you please edit the post itself to provide the additional clarification? – Dan Oct 12 '15 at 15:32
2

I think Focus is what you’re looking for.

Focus provides focus-mode that dims the text of surrounding sections, similar to iA Writer's Focus Mode.

You can find it on MELPA, if you have it configured in your init file, via M-x package-install focus. Once installed, you can enable it with M-x focus-mode.

  • It's pretty much what I want, but I can't find proper extension for thing-at-point(which is used by Focus package for finding things to highlighting) for highlighting XML tags. Anyway thanks for fast feedback. – bruce Oct 12 '15 at 15:17
  • Focus already works with XML. Highlighting tags is a different issue. – Manuel Uberti Oct 12 '15 at 15:45
  • Also, check the built-in nxml-mode for XML syntax highlighting. – Manuel Uberti Oct 12 '15 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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