Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Highlight words in confluence text editor

Many text editors, including popular among developers StackExchange question editor, allows users to highlight single words in the sentence: bf3db20a9a67af1221ffcc37d2b71709.png

For example, ErrorAction is highlighted.

 

I don't seem to be able to find anything similar in Confluence page editor. How can I achieve a similar highlight background color effect? Thanks.

4 answers

Since the editor does not support highlighting, but it does support other features that no one uses like subscript, I hijacked the subscript feature to perform highlighting instead.  All you have to do is go to "Space Tools" > "Look and Feel" > "Stylesheet", and add the following.  Then anything that you set as subscript will instead be highlighted yellow.

<style type="text/css">
/* hijack subscript and make it highlighting instead */
.wiki-content sub {vertical-align: inherit; font-size: inherit; background-color: yellow; }
</style>

Please note that you must have the Space Admin permission to view and edit the stylesheet.

Use span stype around the word that you want to highlight

 

<p>Here is something that we do not want to highlight<span style="background-color: yellow;”>WORD TO HIGLIGHT</span> </p>

Sorry, this does not work. 

There is a discussion about the same topic in another thread:
Change text background color in confluence editor?

I agree that it should be as easy as selecting some text and hitting some kind of "background text color" button. But it's nearly as easy with the Highlight macro, though you may have to toy with putting extra spaces in front or behind the text in the macro to get it to space out right.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

82 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you