question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to add a text background color to a Paragraph or TextRun

See original GitHub issue

Is there a way to add a text background color to a Paragraph or TextRun.

Like we can do with tables:

table.getCell(0, 0).setShading({ fill: "42c5f4", color: "auto", })

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
dolanmiucommented, Apr 18, 2019

coming soon!

I am working on that piece now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply shading to words or paragraphs - Microsoft Support
Add background colors to words and paragraphs in your documents. ... Under Theme Colors, click the color that you want to use to...
Read more >
html - How do I set a background-color for the width of text, not ...
Put the text in an inline element, such as a <span> . ... And then apply the background color on the inline element....
Read more >
How to Add a Background-Color for the Text Width Instead of ...
On this page, you will find how to set a background-color for the text width instead of the width of the entire element....
Read more >
CharacterFormat.BackgroundColor Property - SautinSoft
Gets or sets the text background color. overrides . ... Add(p); // Create a formatted text (Run element) and add it into paragraph....
Read more >
REST Resource: documents | Google Docs
textRun. object ( TextRun ). A text run paragraph element. autoText ... When setting a link, the text foreground color will be updated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found