text editor and/or html question 

is there a text editor that can pick out the parts of many files that are identical and make changes to all of them at once? i'm picturing, like. the parts of files that aren't the same across all of them being highlighted in red. being able to select and deselect certain files.

specifically im wanting to be able to change the head of all pages on my website at once. as far as i know there's no way to import one html file into another?

re: text editor and/or html question 

@k4gi I think what you want is a static site generator, it'll let you use macros and templates in your website and "compile" it to a set of static files that work as if you hand-wrote them

including html in html is not supported, I guess you could go old-school and use framesets or sth

re: text editor and/or html question 

@noiob i have thought about a static site generator, perhaps it is what i am after... though i am loathe to move away from just editing everything by hand

Follow

re: text editor and/or html question 

@k4gi I used Zola for my dad's super simple website to not have to repeat the contact widget between two pages (three occurrences) and it was already worth it

@k4gi you can always use PHP, the original html templating language (as fedi's PHP defender, please don't)

@noiob ooo why not? i haven't used php very much

@k4gi because it's not a templating language anymore (and it never was a good one, they went and built twig so it could have proper templates) and you're not making anything dynamic anyways

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!