>>1068331 (OP)
> compiler for html
Do you mean text editor? I used (Neo)vim, but that's mostly a power tool that takes a while to get proficient with it. You can work through the tutorial (type vimtutor in your shell) and get going within less than an hour, but it takes time to learn all its powerful features.
> I'm getting tired of using a txt file with no error handling
There is no error handling in HTML, browsers will consume whatever garbage and try to fix it. What you want is a validator that will scan your code and check it for errors.
https://validator.w3.org/
You can also run it offline from your shell.
https://validator.w3.org/docs/install.html
The best way would be to hook up your text editor to run the validator automatically and display errors in a list. That's one of those advanced Vim features I was talking about, but other editors have something similar for sure.