Lines numbers are shown by default at the left of the screen in Sublime Text. Is there a way to get column numbers to show at the top of the screen?
Related
So the problem i am facing is that ,
When the user is hovering over a column which has text exceeding the column width , the tooltip is showing to the mid point of the text when the column will be expanded to see the full text.
I am using a standard bootstrap tooltip with $().tooltip()
In the image you can see that the tooltip is getting shifted to the next column , thats because , when you expand the current column , it will display the full text with its big length and the mid-point for the tooltip then will show properly
So what I need to do is , When the column is shortened ( resized to show less width ) , the tooltip should not show as when the column is fully expanded or fully resized ( currently it is showing the tooltip- triangle based on the fully expanded(resized) column )
I'm working on a webpage with a certain design: I would like to get text to be on both sides of some other text, and when the browser window is narrowed, I would like for all the text to be below the original text. The situation is as in the picture below, with a wide browser window on the left and a narrow one on the right.
It would be great if the text would continue from the left side to the right side. If that's not possible, then I wouldn't mind the text on the top right starting where the text on the middle left ended. Honestly, the "Text 2" part is just a bunch of small pictures (all of which I want to appear somewhere on the page), so the order in which they appear does not matter.
What matters is that when the browser window is wide, the space near the top of the page gets filled first, and then moving down to the bottom. And when the page is narrowed, more space down below gets filled, until no more space is left on the sides, so everything is in the bottom (when the window is narrowest).
So far I have tried looking at floating a div in the center of the page, but that doesn't allow me to have text on both sides. Also if I have 3 columns, then I may lose some of the "Text 2" when the browser window is narrowed. "Text 1" has fixed width and height, and "Text 2" has variable width and height. Any tips are appreciated!
On desktop the order of the grid row is:
Text | Picture
Picture | Text
Text | Picture
On mobile this becomes:
Text
Picture
Picture
Text
Text
Picture
Is there any way to change this order on mobile? to for example: Text Picture Text Picture Text Picture
Thank you!
You can use pull col-md-pull-* to your text.
so your text would be in the left and when it small, it will be in the top.
Or
You can use push col-md-push-* to your picture.
so your text would be in the right and when it small, it will be in the bottom.
check this out http://getbootstrap.com/css/#grid-offseting
I have been given a very specific requirement on how to display a list of messages. Each message can be up to 3200 characters long. For this particular display of the messages, only the first two lines of each are to be displayed, showing whatever fits of the message with the original format intact (tabs, spaces, newlines). The messages are to be contained in a JInternalFrame. When the user drags a side of the frame to increase or decrease its width, the visible text of a message is supposed to increase or decrease along with the frame, no horizontal scroll bar is desired.
I was able to get the desired behaviour with the text increasing/decreasing with the width of the frame using the following:
JTextArea ta = new JTextArea();
ta.setLineWrap(true);
ta.setWrapStyleWord(true);
ta.setRows(2);
ta.setEditable(false);
ta.setOpaque(false);
ta.setText(longString());
ta.setAlignmentY(TOP_ALIGNMENT);
JScrollPane scrollPane = new JScrollPane(ta);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
A list of scrollPanes are added to a JScrollPane with a vertical scroll bar but no horizontal scroll bar in the JInternalFrame.
The problem I am having is that the text is resting on the bottom of the JTextArea, so the user sees the last two lines of the message, not the first two lines. It appears to be possible to set the horizontal alignment, but not the vertical alignment. Is there some way to get the automatically expanding/contracting text with text alignment at the top?
This is something that's bugged me in the past as well. It has to do with how JTextComponents interact with JScrollPanes - specifically, there is a (invisible, when non-editable) Caret that ends up at the end of your JTextComponent. When the viewport tries to figure out what it should be viewing, it looks at the caret.
So, tell the JTextArea not to move the caret during your initialization block:
DefaultCaret c = new DefaultCaret();
c.setUpdatePolicy( DefaultCaret.NEVER_UPDATE );
ta.setCaret( c );
After loading text into the text area you can use:
textArea.setCaretPosition(0);
Whenever i try to select line of text that is longer and i need to scroll to right to select it Sublime text scrolls back to left.
I tried deleting all plugins but it looks like a default sublime text behavior.
Does this happen to everyone else and can this be changed?
This doesn't happen to me. Selecting and scrolling over keeps me on the right. You can also put your cursor at the front of the line, hold shift and hit the end key. You should be on the right with the line highlighted.
Extra: If you want to highlight a line and stay on the left, triple click the line.