Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 08 Oct 2026 - @994.04
Forum Activity: Three Stars Random | Recent Posts | Guild Recents
News: Love is not possession  :4u: Guild Events: TIME FOR HALLOWEEN CRAFTS!
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  automatic html text converter?


« previous next »
Pages: [1] Print Embed
Author Topic: automatic html text converter?  (Read 1572 times)
signfrog
Newbie ⚓︎
*
View Profile WWW


⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2025!
« on: Summer, 22 Jul 2025 @380 » Embed

i write a blog, and it is getting genuinely infuriating to add code to every line. is there a program that can do this for me?

i use subheaders and all that jazz in my posts too, so preferably smth that i could change the perameters of in the settings, but honestly anything is better than what im doing right now.

thank you

:chef:

Logged
MediocreMetastasis
Sr. Member ⚓︎
****
View Profile WWWArt


Wishlist Skelecool: Remnants Please!!!
⛺︎ My Room
Itch.io: My Games

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #1 on: Summer, 22 Jul 2025 @455 » Toggle Font Embed

Not sure if this will help at all but I did make a text to HTML convertor but it isn't good  and I'm planning on implementing more features (images, links).
Example of the pre converted text
text to html convertor
You can add another case to the switch statement such as H2 or H3 and copy code from the other cases.


EDIT here's function that loads a blog page template and inserts the converted text.

Spoiler
Code
function LoadBlogContent(path) {
    fetch(path)
        .then(r=>r.text())
        .then(text => {
        data = convert(text);
    });
    var xhr= new XMLHttpRequest();
    xhr.open('GET', 'BlogContent.html', true);
    xhr.onreadystatechange= function() {
        if (this.readyState!==4) return;
        if (this.status!==200) return; // or whatever error handling you want
            document.body.innerHTML = this.responseText;
            document.getElementById("PostTitle").innerHTML = data["title"];
            document.getElementById("PostContent").innerHTML = data["innerHTML"];
    };
    xhr.send();
}
[close]

« Last Edit: Summer, 22 Jul 2025 @458 by MediocreMetastasis » Logged


Artifact Swap: Sad DoggoNeutral Doggo
invader_gvim
Sr. Member ⚓︎
****
View Profile WWWArt


Don't scream for help. Fight together!
⛺︎ My Room

Guild Memberships:
Artifacts:
Sent On Earth By The Almighty TallestJoined 2024!
« Reply #2 on: Summer, 22 Jul 2025 @548 » Toggle Font Embed

Here's how I did it on my site. You can use <div> and some css to just put all the text inside of a box and that can have any formatting you want including none. Bellow is the pastebin which will let you look at the source code to do it, but you can also just go to one of my pages and look at source. :transport: :transport: :transport: :transport: :transport: :transport: :transport: :transport: :transport: :transport: :transport: :transport: :transport: :transport:



Here is the page.

I forget who taught me how to do this. I think that maybe I had read a post from Paprika explaining how to do it, but it might have been the other cool person with a Neptune profile pic.  :happy:

« Last Edit: Summer, 22 Jul 2025 @555 by invader_gvim » Logged

Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
You're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top HatI got robbed by Dan Q on Melonland!
« Reply #3 on: Summer, 22 Jul 2025 @595 » Toggle Font Embed

One very overlooked option is that you can just write your blog pages in Microsoft Word (Possibly LibreOffice too?) and save them as HTML pages ^^ It lets you do all the formatting, image and style options (including links) as a word document, and you don't have to do any code work.

If you wanna add in custom styles you can setup a CSS file that you just paste into the exported html before you publish it.

It's a feature that's been in Word for decades, so even if you don't have access to modern Word, you can grab an older copy from Archive.org and it'll work just fine  :wizard:

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: Have a chillpillRed Tulip100 coins<3curious fish
MediocreMetastasis
Sr. Member ⚓︎
****
View Profile WWWArt


Wishlist Skelecool: Remnants Please!!!
⛺︎ My Room
Itch.io: My Games

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #4 on: Summer, 24 Jul 2025 @574 » Toggle Font Embed

just write your blog pages in Microsoft Word (Possibly LibreOffice too?) and save them as HTML pages
That's actually pretty cool. I might remember that for later.

Logged


Artifact Swap: Sad DoggoNeutral Doggo
Blue
Full Member ⚓︎
***
View Profile WWW


⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: overmore
iMood: overmore
Itch.io: My Games

Guild Memberships:
Artifacts:
Daydreaming My MelodyJoined 2025!
« Reply #5 on: Summer, 26 Jul 2025 @563 » Embed

Would like to add to all of this, ellipsus, a writing program that I use, allows you to copy everything in HTML. It's also a good writing program overall, so I'd recommend it in general, but it has also been a lot of help for writing my site writing comprated to before.

Logged

https://files.catbox.moe/ul9xd6.pnghttps://files.catbox.moe/cep284.png
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe