texthelper: text manipulations

documentation

pyquickhelper.texthelper.add_rst_links (text, values, tag = ‘epkg’, n = 4)

Replaces words by something like :epkg:'word'.

pyquickhelper.texthelper.html_helper.html_in_frame (htext, style = ‘width:100%;height:100%;’)

Inserts HTML text into a frame in binary format.

templating

pyquickhelper.texthelper.apply_template (text, context, engine = ‘mako’)

Extend a string containing templating instructions. See mako or jinja2.

style

pyquickhelper.texthelper.change_style (name)

Switches from AaBb into aa_bb.