Page 1 of 1
Rules Editor Font
Posted: Fri Oct 25, 2013 9:14 am
by SimonLAylett
Hi,
OCD Alert.
Random question, but one that bugs me - What is the default font for the TM1 rules editor? When I paste rules in with a different font, I can never get the same font to match it.
Cheers.
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 9:21 am
by BariAbdul
This is what rules guide says
"Using the Preferences Dialog to Adjust Font Schemes:
The Rules Editor provides a default font scheme to help you visually identify the
different categories of rules syntax when working in the Edit pane.
You can change the default font scheme using the Preferences dialog to select your
own font style, size, color, and background. Examples of the different syntax
categories include comments, errors, functions, and selected text.
Any changes you make are saved when you exit the Rules Editor so they can be
re-applied the next time you edit a rule.
Note: The font style and font size apply to all text in the Edit pane and cannot be
set for individual categories of rules syntax"
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 9:38 am
by SimonLAylett
Thanks, I saw this - What i'm asking is what is the initial font set at?
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 11:31 am
by Edward Stuart
If you open the Advanced Rules Editor and select Tools > Preferences then you will see that the font is Courier New, Size 10
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 12:42 pm
by qml
In the legacy rule editor this font is 'MS Shell Dlg 2' size 8.5, regular. I don't think you can pick this logical typeface from the 'Font...' format window, but you can use its equivalent: Tahoma size 8, regular (at least this is the equivalent in all modern Windows versions - it can change in future if Microsoft decide so).
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 12:52 pm
by Duncan P
@Simon - assuming you mean the standard rule editor in Architect I can detect no difference between the default and Tahoma Regular 8.
[edit] QML beats me at OCDness as well. Oh well.
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 1:18 pm
by SimonLAylett
Thanks All, much appreciated. Tahoma 8pt did the trick.
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 1:22 pm
by Duncan P
As a precaution when I am pasting text from software that thinks it's clever (e.g. Word) I always paste it into Notepad first and then copy from there.
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 1:31 pm
by tomok
Duncan P wrote:As a precaution when I am pasting text from software that thinks it's clever (e.g. Word) I always paste it into Notepad first and then copy from there.
I thought I was the only person that did that!

I almost always use Notepad as a paste intermediary when copying between apps. It saves a lot of headaches.
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 3:36 pm
by TableManagerOne
I did the Notepad step enough that I went looking, and found,
https://code.google.com/p/puretext-plus/, so that you can "paste unformatted" with a hotkey (e.g. Win+v.)
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 6:27 pm
by Duncan P
You don't also have one for inserting tab characters into the TI editorsaurus code windows do you?
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 7:44 pm
by qml
Duncan P wrote:You don't also have one for inserting tab characters into the TI editorsaurus code windows do you?
You mean "ctrl+i"?
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 8:22 pm
by Wim Gielis
On a similar note, copy/paste of the dimension names in the Server Explorer (when the Properties Display is on),
adds an invisible character when you paste it in tI. Therefore I always paste it first in Notepad or Notepad++.
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 8:37 pm
by Duncan P
@QML Thanks. I really really really wish I'd known that three years ago when I was writing TI 8 hours a day for a year. It's been a long time since I looked at an ASCII table and I'm so used to the Ctrl keys being hijacked by Windows that I didn't think of that.
Re: Rules Editor Font
Posted: Fri Oct 25, 2013 9:25 pm
by qml
Duncan P wrote:@QML Thanks. I really really really wish I'd known that three years ago when I was writing TI 8 hours a day for a year.
I know exactly what you mean. For years I used multiple spaces for indentation like many people do and I do not miss those days one bit. I am a better person, husband and father since I discovered "ctrl+i" in TI editor and rules editor.
Re: Rules Editor Font
Posted: Mon Oct 28, 2013 8:35 am
by Steve Rowe
The only things about ctrl+i is that the tab is too wide for me so that in any significant level of nesting your code ends up spread across acres of left to right space.
I've found this very hard to read defeating the point of using the tabs in the first place and have reverted to using spaces!
Re: Rules Editor Font
Posted: Mon Oct 28, 2013 10:41 am
by qml
Steve Rowe wrote:The only things about ctrl+i is that the tab is too wide for me so that in any significant level of nesting your code ends up spread across acres of left to right space.
That's exactly what modern widescreen monitors are for - so that you can see a sea of white on either left or right. I prefer it on the left, you prefer it on the right. Potayto - potahto. Orange - sporange.