Database implementation of formatting <p>I have database like this:</p> <pre><code>text_id | sentence_id | word_id | word | meaning 4 2 124 I Ja 4 2 124 like lubię 4 2 124 trains. pociągi </code></pre> <p>Where "Ja", "lubię" , "pociągi" are unique translation in particular context.</p> <p>The thing is that I need sometimes, format this text, this is for example bold the word "trains" in on my website. Or surround one of the sentences with: </p> <pre><code>&lt;h1&gt; &lt;/h1&gt; </code></pre> <p>tag.</p> <p>I have no idea how to save information about formatting in a not obtrusive way.</p> <p>Thanks for help.</p> <p>PS: I need no fancy formatting, I just need save information about new paragraphs "p" headers "h1" "h2" and so on.</p> <p>Maybe I would like to save information about image that is between particular sentences.</p> <p>PS2: I use MySql.</p>