Skip Navigation

What do you use for writing HTML by hand?

I don't like front-end development but I enjoy writing things by hand rather than rely on one-off classes. Even in my blog, I tend to write a lot of HTML manually throughout the post, like creating a quick container to put two images side-by-side and center them, making blockquotes, the occasional nested list, in-line CSS, etc...

I've written some of it in VSCode and Joplin but I didn't find it comfortable to write in either of them. What editor/extensions do you use to make dealing with HTML easier? I'm currently looking at Emmet, but it looks a bit intimidating to learn.

Edit: I ended up using Emmet for writing HTML in general along with Espanso for quickly inserting some templates I use. It's working out pretty well!

29 comments
  • vscode with the built-in Emmet support.

    Emmet isn't intimidating, unless you don't know CSS, in which case it is extremely intimidating.

     html
        
    a+b:
    <a href=""></a><b></b>
    
    a>b:
    <a href=""><b></b></a>
    
    a*2:
    <a href=""></a><a href=""></a>
    
    div.yeet:
    <div class="yeet"></div>
    
    A combination:
    a>b+i*2.dollah:
    <a href=""><b></b><i class="dollah"></i><i class="dollah"></i></a>
    
      

    That's 99% of what you need to know to get started with Emmet.

    Anyway, I used to write 100% hand-written HTML, but switched to using Hugo because: Go's built-in Templating language I knew from working with K8S, build-times are sub-second, and I can write a page in either Markdown or HTML, whichever I need (or even mix in some HTML in the Markdown!)

    Because of hugo I don't need to mess around with repeating parts (like the nav menu).

    Only downsides:

    • it strips the comments, which I would've loved to leave in for people to read
    • the formatting is my favorite, so I format with prettier before committing

    I use git submodules to have the public/ folder be my Github Pages host repo, so I can just muck about locally, while I do a rebuild (which changes the files in the submodule). Only after a commit, I'll effectively publish the website.

    Check out the website (mostly for the HTML - the articles are... meh): https://thaumatorium.com/ (no trackers, so no Cookiewall nonsense either :D)

  • I just write everything in vim, including raw html.

    Not sure what your use case is, but if it's a static website you'd probably want a static site generator so you can write in markdown and then also include raw html for things that markdown can't represent.

  • Depends on context, but

    • Notepad++
    • Visual Studio
    • Visual Studio Code
    • Double Commander "quick"-editor
    • vim
    • micro
    • Firefox dev tools (console, dom edit)

    When I write HTML, I don't use IDE features but accept them in Visual Studio.

29 comments