Gtk3 label line spacing - gtk

Is there any way to specify spacing between lines of text in multiline Gtk3 Label, as with CSS line-height property? This CSS property does not work and I can't google out anything else.

I found the solution using Pangoattribute on label
<br>PangoAttrList *attr_list;</br>
<br>PangoAttribute *attr;</br>
<br> attr_list=pango_attr_list_new();</br>
<br>attr=pango_attr_rise_new (20000);</br>
<br>pango_attr_list_insert(attr_list,attr);</br>
<br>gtk_label_set_attributes(GTK_LABEL(label),attr_list);</br>

Related

How to change the ion-fab-button line height in ionic 4

For a simple fab button like below:
<ion-fab-button>Press here</ion-fab-button>
How to target the line-height so that the two words "Press here" will display in two lines with controllable line height?
I'd tried css line-height method with no luck. I tried to change the
white-space to normal but the line height had no effect at all. Also,
I tried to use br
Press <br> here
but again the line height won't work at all. Please help...
Just for those encounter the same problem.
Put a div to wrap the text, e.g. press here.
Then you can use line-height to control the line spacing as it became block element now.

Changing the colour of curley braces inside VSC

I write content in VSC and I use handlebars to write content.
{{#jan}} Hello my name is Tony {{else}} Hi my name is Bob {{/if}}
Is there any way I can get the content inside the {{}} to highlight something like bright yellow? when I have loads of these in the docs, its hard to spot them when scrolling.
I've tried messing around with the workspace settings.js file but have had no luck. Thanks
The title of your question asks how to change the color of the brackets themselves, while the body asks for how to change the content in the middle.
here's a solution for the title part: the extension bracket pair colorizer will give you full control over curly brace colors. by default, it colors nested braces differently, but as per its documentation, you can configure it however you want. so if you choose only one brace color, they can both be yellow or whatever color you want
https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2

Plone - TinyMCE editor - line breaks with double instead single line spacing

We are using Plone 4.1.3 and the default TinyMCE editor. When we press the Enter key in TinyMCE, it produces a double line spacing instead of single line. We found a few similar questions and answers on this issue in the forum but don't know and cannot find the TinyMCE configuration file to modify to make line break into single line spacing. There is also nothing in Site Setup or ZMI to configure this for TinyMCE.
We found this the forum but it is not pertaining to plone.
Decrease the line spacing in TinyMCE textarea
Thank you very much in anticipation
cmgui
CSS. These are just paragraph elements (<p> tags). -- style them!
http://plone.293351.n2.nabble.com/TinyMCE-Plone-4-customizing-the-styles-for-own-CSS-classes-td5954678.html
As sdupton pointed out, this is indeed on purpose; enter is supposed to be a paragraph break, and behaves the same way in applications like Word. You can insert line breaks by shift-enter, but it's not encouraged to do that on the web, since text flows differently depending on font size and window size (and OS!).
If you want paragraphs to have less spacing, use CSS to reduce the margin/padding.

Different the width of whitespace in eclipse editor

I set my editor use the whitespace only, but I got problem with the whitespace's width. The longer whitespace in blank lines, shorter in others. I have no idea how to configure it.
You are using a variable width font. Change it to a fixed width font like Courier New/Consolas/Monaco/Menlo (depending on your preferences)
Go to Eclipse->Preferences->General->Appearance->Colors and Fonts->Structured Text Editors->Structured Text Editor font and set it to a fixed width font
If you do want to use a variable width font, just make all those fonts/colors use the same size.
Monospaced fonts are only used because editors still don't support relatively recent inventions like elastic tabstops which results in the type of issue you highlight. That plus habit.
I personally find that variable width fonts look so much better and increase the readability so much that they're totally worth it.

How to display multi-line text without scroll in UIView?

I have multi-line non-HTML text (with newlines). Need to output it inside ScrollView or just UIView.
I can't output it as UITextView: can't find how to resize UITextView to the size of text and/or disable scroll in it.
Should I output text to Label?
Or there's something more proper for that?
Thanks.
Try using a UILabel, then set the lineBreakMode property to UILineBreakModeWordWrap, and the numberOfLines property to zero (unlimited lines).
Depending on the style of text you're using, you might try stripping out the newlines so the result looks better.