It must be a pain to make a text box with the ability to add bold, italic, heading, etc. you know? All the bold text, italics, and headings would need to be saved in a database column to be retrieved later in their correct positions.

I don’t know, I am doing internship learning C# ASP (started 2 months ago), and just got a “Shower Thought” while making an edit post function.

  • @[email protected]OP
    link
    fedilink
    72 months ago

    Usually, it’s more sane to embed formatting in the string itself rather than having styling separately defined (i.e. CSS, kinda).

    like this: <b>Bold Text</b>?

    • @[email protected]
      link
      fedilink
      122 months ago

      Yes, but usually not actual HTML because then there are a lot of security issues to address. BBCode might even be a better choice, i.e. [b]Bold Text[/b]

      • @SatouKazuma
        link
        52 months ago

        Is there anyone in this instance who isn’t a developer of some stack or another?