Are line breaks in tooltips shown consistently across platforms in SWT - swt

I would like to have a control with a two-line tooltip. For example a Label:
Label label = new Label( parent, SWT.NONE );
label.setText( "label text" );
label.setToolTipText( "one line\nsecond line" );
The documentation does not state anything regarding line breaks, however, on Windows, the tooltip shows two lines like desired:
Now, I would like to know how multi-line tooltips are shown on other platforms, in particular, Gtk3/Linux and macOS.

To summarize what #greg-449 and #Nobody said:
Line breaks in SWT tooltips appear consistently across major platforms: Windows, macOS, and Gtk3/Linux

Related

How to remove this gray line that causes text to wrap in VS Code?

I've recently noticed that when typing out long lines of code, they split into multiple lines after this threshold and it bothers me. enter image description here
Not sure if it was a formatting extension that I put on here years ago, but I couldn't seem to locate it in the settings.
The grey line isn't what causes the wrapping. You can apply settings to have the grey line and not have wrapping. They grey line is displayed according to the editor.ruler setting.
In general text editor terminology, this wrapping you are observing is called "soft wrapping" (when an editor wraps long lines in its rendering of the text, but doesn't actually insert line-break characters, which is called "hard wrapping").
By default, soft-wrapping can be toggled by Alt+z (The command palette command is named View: Toggle Word Wrap).
The default setting of soft wrapping for VS Code is configurable by the editor.wordWrap setting. It has several values it can take on:
"bounded": lines wrap at the minimum of viewport width and editor.wordWrapColumn,
"off": Lines will never wrap
"on": Lines will wrap at the viewport width
"wordWrapColumn": Lines will wrap at editor.wordWrapColumn
The word wrap column is configurable by the editor.wordWrapColumn setting. See also the editor.wrappingIndent and wrappingStrategy settings.
This is a setting called rulers. Go into Settings and search "rulers". Then you will be able to edit the settings.json file. Under "editor.rulers" remove all values in the array so that it is empty. That should solve it.

How to customize the hard wrap vertical line in Android Studio IDE for code formatting

When I apply "Format code" my lines of code automatically down line (many lines) even though my screen has enough space to display it on 1 line.
I see it depends on the vertical line (red in the image),
how can I remove this line or widen it?
My language is: Dart
You can disable the line from File->Settings->Editor->Appearance and then uncheck 'Show hard wrap and visual guides'.
You can take reference from these two images:
'Show hard wrap and visual guides' checked
'Show hard wrap and visual guides' unchecked
Also you can customize it from the 'Code Style' option in the same(Editor) dropdown.
For your reference:
Hard wrap with value 50:
Hard wrap with value 100:
Edit: for flutter development you need to the change the line length for auto formatting in dart option in the code style dropdown. Like this:
A lot of customizations could be done according to the need.

Line wrapping TeX from Visual Studio Code

I'm seeking a command that when I highlight a paragraph of text in Visual Studio Code will let me remove all line breaks, and correspondingly a command that if I highlight a paragraph without line breaks will insert them at the end of the display width.
It wont be enough to just use Alt-Z because that just makes the display show the line wrapping but doesn't actually insert the line breaks.
For context: I'm using a VS Code latex plugin which is a compiled text editor format. Errors in this system trace back to line numbers so if you don't have line breaks you have to hunt down the error somewhere in a large paragraph. But of course this being a text document there you often have to edit paragraphs and end-of-lines become jagged and hard to read/update.
You can set this behavior searching for "Word Wrap" in the settings. Set to "on" to wrap the words.
Found a solution, maybe it will help someone in the future.: install "rewrap" extension. Select portion of text, and use Alt-q. Seems to work like Emacs' M-q command. (Thx Grant)

Sublime Text 2 like block highlighting in emacs

Is there an emacs plugin which creates these nice vertical lines for the code blocks like in Sublime Text 2? (See attached screenshots for what I mean).
Please see highlight-indentation:
https://github.com/antonj/Highlight-Indentation-for-Emacs/
Unfortunately the current version is very simple and it draws character-wide columns instead of thin lines so it doesn't look very appealing. But at least it's a start.
I do not use it by default - if I'm lost then I do M-x highlight-indentation.
It's not quite the same thing, but you get a similar benefit from the features mentioned here:
http://www.emacswiki.org/emacs/HighlightCurrentColumn
http://www.emacswiki.org/emacs/VlineMode
Vline can use a thin line (or a face). Column-marker highlighting stays put (doesn't move with the cursor), and you can highlight any number of columns, but it uses a face, not a thin line.

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.