← Back to team overview

openlp-core team mailing list archive

Re: [Question #135799]: Issues with formatting codes

 

Question #135799 on OpenLP changed:
https://answers.launchpad.net/openlp/+question/135799

Kieran Clancy posted a new comment:
I can understand that HTML is complicated to parse, but BBCode is pretty
simple. Even just a very limited subset of BBCode.

But actually, the main point of my question was that the rendering
(colour, font, bold, italics) needs to be set by the theme; hard-coding
anything in the song text seems like the wrong method to me. Rather,
formatting codes in the songs should describe a "class" which can be
given formatting in the theme.

So if you want the chorus in a different colour, you can put formatting
tags like [chorus]  [/chorus] or {chorus} {/chorus} (if you want to stay
with the curly braces) and then in the theme dialogue you could have a
drop-down list of class names and if you select "chorus" then you can
change the formatting for that class. This means the formatting can
still be very easy to parse, while allowing a lot more flexibility in
the styling of the text.

-- 
You received this question notification because you are a member of
OpenLP Core, which is an answer contact for OpenLP.