• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I format the comments text?
#2
While I could add more settings to control the formatting of comments, this actually requires a significant number of code changes, changes to the database, and takes up more room on the settings dialog (which is getting too full and I may need to consider a different design at some point). I think it would be better if you can utilize the pango markup syntax, which gives you full control over the formatting of any text in your file. For example, if you wanted to make the font larger for a comment and change the color, you could do this:

<span color="red" size="18">This is my comment</span>

another variant

<span color="red" size="larger">This is my comment</span>

The larger value maps to a 25% increase over the current font size at that point in the file. You can read more about the pango markup syntax here: https://www.chordpro.org/chordpro/chordpro_markup/

It's going to be a while before I have time to work on it, but I want to integrate the pango markup syntax with the text editor to make it much easier to control the styling.

Mike
Reply


Messages In This Thread
Can I format the comments text? - by DamoS - 05-06-2024, 03:49 PM
RE: Can I format the comments text? - by Zubersoft - 05-07-2024, 03:49 AM
RE: Can I format the comments text? - by DamoS - 05-07-2024, 06:18 AM
RE: Can I format the comments text? - by itsme - 05-07-2024, 03:16 PM
RE: Can I format the comments text? - by itsme - 05-07-2024, 09:58 PM
RE: Can I format the comments text? - by RoSong - 05-08-2024, 01:11 AM
RE: Can I format the comments text? - by spflmf - 05-08-2024, 06:33 PM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.