[Python] Adding highlighting to a run in python-pptx

Discussão em 'Python' iniciado por Stack, Agosto 28, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to automate adding a highlight to a run of text (really a background colour) using python-pptx.

    I've done a lot of work with python-pptx and have done a tiny amount of fiddling with _element in the past.

    Could someone post a quick sample of highlighting a run of text using python-pptx? That I can work up into something fitting my need. (I don't care what the colour of the highlight is;I think there's some kind of enumeration of valid colours for this.)

    Thanks!

    Continue reading...

Compartilhe esta Página