Questions tagged [rulers]
41 questions
292
votes
7 answers
How to make ruler always be shown in Sublime text 2?
I use Sublime Text 2 and want a Ruler to be shown in every file with specific line-height. But I have to show it manually in every file.
![](../../users/profiles/876281.webp)
Denis Óbukhov
- 4,069
- 4
- 17
- 27
161
votes
2 answers
Google Chrome Developer Tools - disable black emulation options ruler
In Google Chrome version 38+, there's a new black ruler with Device emulation options. Does anyone know how to disable this?
![](../../users/profiles/2069295.webp)
Jeremy Moritz
- 10,834
- 6
- 30
- 37
7
votes
1 answer
Algorithm for self-scaling ruler in plotter GUI component
I am designing (not programming) a data-series viewer program for medical data, using C#/WPF. There is one main panel which shows the data, with the common mouse pan/zoom functionality (pan with left drag, horizontal zoom with scroll, vertical…
![](../../users/profiles/401828.webp)
heltonbiker
- 23,225
- 20
- 121
- 212
7
votes
6 answers
How to make a ruler scale in HTML and CSS
I would like to draw something simple like this using HTML and CSS:
|_____|_____|_____|_____|
with aligned numbers underneath each vertical bar, e.g. 0, 1, 2, 3, 4 etc.
I would also like to adjust the space between bars programmatically. Is there…
![](../../users/profiles/1036544.webp)
MLister
- 8,552
- 16
- 56
- 86
6
votes
0 answers
Grid with ruler for WPF
I am quite new to WPF Development, and am currently developing a WPF Application, for which I require a grid control with a pixels ruler as below:
The above picture has been taken from the RadDiagramRuler control of Telerik WPF Controls, which I…
![](../../users/profiles/1600855.webp)
Prabash Darshana
- 401
- 1
- 5
- 14
5
votes
2 answers
How to determine width of text in OpenSCAD?
In OpenSCAD, I want to be able to create a module which accepts a string then create a 3-D object with that string embedded in the surface as a text. I want the object to be slightly larger than the text, so I need to know how wide the text is in…
![](../../users/profiles/739095.webp)
Gdalya
- 389
- 3
- 17
5
votes
4 answers
Xcode Interface Builder - Rulers/object guides
In Xcode, does the interface builder have some sort of customisable rulers like in Photoshop to help me position elements correctly?
I know it does those red lines which appear, but I mean lines that you can position yourself.
Thanks, Dan.
![](../../users/profiles/1598906.webp)
Supertecnoboff
- 5,886
- 9
- 50
- 94
3
votes
0 answers
How to get rounded corners on NSScrollView to work with NSRulerView
I’m having some difficulty getting an NSTextView embedded in an NSScrollView with a horizontal NSRulerView to play well with a rounded corner mask. I’ve created a simple test application to localize the issue.
First, it appears there are basically…
![](../../users/profiles/204468.webp)
Dalmazio
- 1,775
- 1
- 22
- 34
3
votes
1 answer
How to indent a long ternary condition in Php?
I have a long ternary condition in Php that exceeds the 120 hard rule.
What would be the right indentation according to PSR standard?
This is my ternary condition. The condition is a bit long, so the function call exceeds the 120 rule.
$variable =…
![](../../users/profiles/6521310.webp)
Shylajhaa
- 390
- 4
- 16
3
votes
3 answers
What text editors support vertical rulers?
I'm looking for a feature somewhat like the vertical red 80 columns marker in NetBeans but one that's easier to use. I'd like it to function more like the tabs in MS Word except that the horizontal line is displayed on the entire file. I looked on…
![](../../users/profiles/18149.webp)
leeand00
- 23,306
- 34
- 125
- 265
3
votes
1 answer
How to create keyboard shortcut for displaying ruler in Sublime Text 2?
What I want is to toggle Sublime Text 2 rulers visibility with a keyboard shortcut.
The only information I have got on topic is that rulers can be controlled by following JSON code in Preferences:
{
"rulers": [80, 120],
}
Is it possible to create…
![](../../users/profiles/1210305.webp)
Jake
- 99
- 1
- 9
2
votes
0 answers
Ruler is missing in Android Studio
Ruler is missing in Android Studio v3.0. How can I make it shown?
![](../../users/profiles/4340157.webp)
Ali Ismayilov
- 63
- 6
2
votes
0 answers
Firefox Inspect Element Keep Rules Shown
Is there a way to keep the Firefox rulers that show up when you hover over an element in inspect element? If you don't know what rulers I'm talking about, it's the following, from this post. I need the rulers to stay visible, to help with aligning…
![](../../users/profiles/3055558.webp)
lynn
- 1,000
- 1
- 9
- 23
2
votes
0 answers
How to identify a scale (ruler) using OpenCV?
I am working with photos containing one or more rulers. The size and shape of the rulers are unknown (i.e. there are a hundred different types which might be used). We can assume that the focal plane of the camera and target are parallel (pitch…
![](../../users/profiles/3601811.webp)
asm
- 53
- 1
- 4
1
vote
1 answer
How do I add rulers to my xcode workspace
I'm trying to use guides on my xcode project but I don't have any rulers displayed on my storyboard workspace, is there a way to get rulers into the workspace?
![](../../users/profiles/1239024.webp)
Jonathan Thompson
- 35
- 1
- 5