This VSCode extension allows you to convert selected HTML text into htpy format using the html2htpy command-line tool. Simply select the HTML code in the editor, run the command, and the extension will replace the selected text with the generated htpy code.
Install extension from vscode marketplace.
Select the HTML code in the editor, open vscode command palette and search for html2htpy and the extension will replace the selected text with the generated htpy code.
This extention expects html2htpy
to be in your $PATH
environment variable. If not, you can specify the full path to the executable in the html2htpy.path
vscode setting.
Add this to your settings.json
:
{
"html2htpy.path": "/path/to/html2htpy"
}