Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

Text Formatting Options #263

Open murilo-s opened 4 months ago

murilo-s commented 4 months ago

Hi,

I would like to suggest creating some additional text formatting options with different colors (blue and green). A good option, would be to give the user an option to create specific formatting to be used with shortcuts or through the "Insert-Html" options.

image

Proektsoftbg commented 4 months ago

Hi!

Thank you for your feedback! Since there are many colors, probably the best will be to have some color picker that can insert any color. With time, we will improve these things. Alternatively, you can just write it as Html: '<font color="blue">Blue</font>

There are also two predefined classes that are intended mainly for design checks:

'<p class="ok">OK (Green)</p>
'<p class="err">ERR (Red)</p>

It is also possible to use some WYSIWYG Html editor to format the text and then, copy the Html source into Calcpad. https://onlinehtmleditor.dev/

murilo-s commented 4 months ago

Thanks for your response. The color picker is a great idea!

I knew about the "err" class, but not the "ok" class. The problem with the "err" class when using in the code is that it is easily confused with the system error output. See image below: image

I would suggest having a separated class for system error warning, so it is not to be confused with a design check.

Proektsoftbg commented 3 months ago

I do not think this is such a big trouble. The purpose of colors is to draw your attention. Then you will read the text and certainly will have to correct the compiler errors. So, the final user of the worksheet should see only the design ones.

If you want a different style, you can define it at the beginning of the worksheet, with just one line: '<style>.fail {color:red;}</style>

I would like to avoid making Calcpad too complicated at this time with so many predefined styles and small features, but keep it as simple as possible. I think that it is actually an advantage.