Convert HTML in place in IDE #125
gazpachoking
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Oops, didn't notice the vscode extension until now. That would be nicer on pycharm side too, I just have never done one of those. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think one of the only downsides with htpy is that you can't just paste html snippets from other places straight into your code. The html2htpy utility is good for that, and I thought it might be nice to have a little more IDE integration with it. Added an --output argument to write the output back to a file, as well as a --location argument to specify a row/col range within the file, and then it becomes usable as an external tool in PyCharm. (Presumably vscode has something like this too?) Is this something we think would be a good pattern? Should I clean it up and make a PR?
2025.05.29_16.20.57_pycharm64_mxYVOVavTE.mp4
My somewhat messy implementation is here https://github.com/gazpachoking/htpy/blob/in-place-html2htpy/htpy/html2htpy.py
Beta Was this translation helpful? Give feedback.
All reactions