Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

bold some letters of string in python

from __future__ import unicode_literals, print_function
from prompt_toolkit import print_formatted_text, HTML

print_formatted_text(HTML('<b>This is bold</b>'))
print_formatted_text(HTML('<i>This is italic</i>'))
print_formatted_text(HTML('<u>This is underlined</u>'))
Source by python-prompt-toolkit.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #bold #letters #string #python
ADD COMMENT
Topic
Name
7+7 =