MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / raw_highlight

Function raw_highlight

tools/python-3.11.9-amd64/Tools/scripts/highlight.py:68–73  ·  view source on GitHub ↗

Straight text display of text classifications

(classified_text)

Source from the content-addressed store, hash-verified

66#### Raw Output ###########################################
67
68def raw_highlight(classified_text):
69 'Straight text display of text classifications'
70 result = []
71 for kind, text in classified_text:
72 result.append('%15s: %r\n' % (kind or 'plain', text))
73 return ''.join(result)
74
75#### ANSI Output ###########################################
76

Callers 1

highlight.pyFile · 0.85

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected