MCPcopy
hub / github.com/victorporof/Sublime-HTMLPrettify / prettify

Function prettify

src/py/utils/script_utils.py:49–54  ·  view source on GitHub ↗

Prettifies the code at the given file path

(args)

Source from the content-addressed store, hash-verified

47
48
49def prettify(args):
50 """Prettifies the code at the given file path"""
51 stdout = run_main_js(args + [get_user_dir(), get_root_dir()])
52 prettified_code = get_prettified_code(stdout)
53 output_diagnostics = get_diagnostics(stdout)
54 return prettified_code, output_diagnostics
55
56
57def prettify_verbose(window, args):

Callers 1

prettify_verboseFunction · 0.85

Calls 5

run_main_jsFunction · 0.85
get_user_dirFunction · 0.85
get_root_dirFunction · 0.85
get_prettified_codeFunction · 0.85
get_diagnosticsFunction · 0.85

Tested by

no test coverage detected