formatter question

I used to be able to get all my varible declarations types to line up,
but now this is the best I can do. I have the formatter option set to
'Fixed align types at offset 40. Is there some option I'm missing?
This certainly isn't a critical problem, just annoying.

I used to be able to get all my varible declarations types to line up, but now
this is the best I can do. I have the formatter option set to 'Fixed align types
at offset 40. Is there some option I'm missing? This certainly isn't a critical
problem, just annoying.

Hi Wendy,

It looks like your problem is due to the font, not the formatter. Your font
needs to be a fixed-width font like Courier New in order to have things line up
properly, but it looks like you are using a variable-width font in the editor. .
.

Phyllis

Hi Phyllis, here is how it looks in Courier...

I formatted it using the compact option and then reformatted using
Fixed...30. It's not that important I guess.

Phyllis Helton wrote:

Hi Wendy,

It looks like your problem is due to the font, not the formatter.
Your font needs to be a fixed-width font like Courier New in order to
have things line up properly, but it looks like you are using a
variable-width font in the editor. . .

Phyllis

From: toad@yahoogroups.com [mailto:toad@yahoogroups.com] *On Behalf
Of *Wendy Penfold
Sent: Monday, February 08, 2010 11:26 AM
To: ToadList
Subject: [toad] formatter question

I used to be able to get all my varible declarations types to line up,
but now this is the best I can do. I have the formatter option set to
'Fixed align types at offset 40. Is there some option I'm missing?
This certainly isn't a critical problem, just annoying.

Hi Phyllis, here is how it looks in Courier...

I formatted it using the compact option and then reformatted using Fixed...30.
It's not that important I guess.

Phyllis Helton wrote:

Hi Wendy,

It looks like your problem is due to the font, not the formatter. Your font
needs to be a fixed-width font like Courier New in order to have things line
up properly, but it looks like you are using a variable-width font in the
editor. . .

Phyllis
att1.dat (73.2 KB)

Hi Phyllis, here is how it looks in Courier...

I formatted it using the compact option and then reformatted using
Fixed...30. It's not that important I guess.

Phyllis Helton wrote:

Hi Wendy,

It looks like your problem is due to the font, not the formatter.
Your font needs to be a fixed-width font like Courier New in order to
have things line up properly, but it looks like you are using a
variable-width font in the editor. . .

Phyllis

From: toad@yahoogroups.com [mailto:toad@yahoogroups.com] *On Behalf
Of *Wendy Penfold
Sent: Monday, February 08, 2010 11:26 AM
To: ToadList
Subject: [toad] formatter question

I used to be able to get all my varible declarations types to line up,
but now this is the best I can do. I have the formatter option set to
'Fixed align types at offset 40. Is there some option I'm missing?
This certainly isn't a critical problem, just annoying.

Hi Phyllis, here is how it looks in Courier...

I formatted it using the compact option and then reformatted using Fixed...30.
It's not that important I guess.

Phyllis Helton wrote:

Hi Wendy,

It looks like your problem is due to the font, not the formatter. Your font
needs to be a fixed-width font like Courier New in order to have things line
up properly, but it looks like you are using a variable-width font in the
editor. . .

Phyllis

That kind of looks like a tabs issue – the text was initially formatted
with all the types at column 40, and whitespace was replaced with tabs assuming
tab stops were every 8 columns, and now it’s being displayed with tab
stops every 4 columns.

Nate Schroeder

IT Commercial Technical Services - Data Management Team

Monsanto Company

800 N. Lindbergh Blvd. G3WI - Saint Louis, MO - 63167

314-694-2592

That kind of looks like a tabs issue – the text was initially formatted
with all the types at column 40, and whitespace was replaced with tabs assuming
tab stops were every 8 columns, and now it’s being displayed with tab
stops every 4 columns.

Nate Schroeder

IT Commercial Technical Services - Data Management Team

Monsanto Company

800 N. Lindbergh Blvd. G3WI - Saint Louis, MO - 63167

314-694-2592

The ragged alignment is caused by unequal formatter and Toad editor tab
settings.

Andre

The ragged alignment is caused by unequal formatter and Toad editor tab
settings.

Andre

Toad editor was set to tab 4 and the formatter was set to tab 3. I
changed them to match and now things line up well in Courier, still
meanders if I use a TT font. Is this a requirement then, to use a fixed
width font?

Andre Vergison wrote:

The ragged alignment is caused by unequal formatter and Toad editor
tab settings.

Andre

Toad editor was set to tab 4 and the formatter was set to tab 3. I changed
them to match and now things line up well in Courier, still meanders if I use a
TT font. Is this a requirement then, to use a fixed width font?

Andre Vergison wrote:

The ragged alignment is caused by unequal formatter and Toad editor tab
settings.

 

Andre

att1.dat (73.2 KB)

Toad editor was set to tab 4 and the formatter was set to tab 3. I
changed them to match and now things line up well in Courier, still
meanders if I use a TT font. Is this a requirement then, to use a fixed
width font?

Andre Vergison wrote:

The ragged alignment is caused by unequal formatter and Toad editor
tab settings.

Andre

Toad editor was set to tab 4 and the formatter was set to tab 3. I changed
them to match and now things line up well in Courier, still meanders if I use a
TT font. Is this a requirement then, to use a fixed width font?

Andre Vergison wrote:

The ragged alignment is caused by unequal formatter and Toad editor tab
settings.

 

Andre

att1.dat (59.9 KB)

If the characters are of different widths, how else could you expect them to
line up perfectly?

If the characters are of different widths, how else could you expect them to
line up perfectly?

Hi Wendy,

in Courier, still meanders if I use a TT font. Is this a
requirement then, to use a fixed width font?

The "problem" is when you use tabs and spaces (or both together). In a
proportional font, a line of 10 spaces (or tabs) isn't always the same
width as another line of 10 spaces (or tabs). It depends on the letters
the 10 spaces are mixed with.

The proportional bit somehow describes that if a 'W' comes after a 'W'
there will be a certain space between the two. If that 'W' comes after
an 'j' then the spacing will be different.

You can see the same problem in Word, for example, if you set a tab
anywhere then type the following:

Hhh
Iii

The lines match up. However, type a few leading spaces and it's all over
the place. I tested with Arial 10.

When you change to a fixed pitch font, every letter is exactly the same
width so they always match up.

For any text editor, or code editor, I tend (myself) to use Courier or
some other fixed pitch font. When writing documents or love letters, I
use a proportional font.

HTH

Cheers,
Norm. [TeamT]

PS. Rich should chime in any time soon, he loves font related threads!
:wink:

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

I’ll add that we opted for MS Shell Dlg2 default font for Toad 10 as it should support all characters in the user’s native language. Toad 10 has full Unicode support and in order to provide this Toad should be able to display the user’s language in the Editor. We have changed the default to fixed width for 10.5 because of the perceived formatter bugs that have resulted.

Michael

When I copy the formatted text from Toad and paste it intoWord in Courier font,
and then switch the font to Arial, it still lines up the same, so Word seems to
handle tabs and variable width fonts differently than Toad. Switching the tab
widths and changing the font to Courier makes everything line up nice in Toad.
Thanks for the info!

Dunbar, Norman wrote:

Hi Wendy,

>> in Courier, still meanders if I use a TT font. Is this a
>> requirement then, to use a fixed width font?

The "problem" is when you use tabs and spaces (or both together). In a
proportional font, a line of 10 spaces (or tabs) isn't always the same
width as another line of 10 spaces (or tabs). It depends on the letters
the 10 spaces are mixed with.

The proportional bit somehow describes that if a 'W' comes after a 'W'
there will be a certain space between the two. If that 'W' comes after
an 'j' then the spacing will be different.

You can see the same problem in Word, for example, if you set a tab
anywhere then type the following:

Hhh
Iii

The lines match up. However, type a few leading spaces and it's all over
the place. I tested with Arial 10.

When you change to a fixed pitch font, every letter is exactly the same
width so they always match up.

For any text editor, or code editor, I tend (myself) to use Courier or
some other fixed pitch font. When writing documents or love letters, I
use a proportional font.

HTH

Cheers,
Norm. [TeamT]

PS. Rich should chime in any time soon, he loves font related threads!
;-)

Information in this message may be confidential and may be legally
privileged. If you have received this message by mistake, please notify the
sender immediately, delete it and do not copy it to anyone else. We have
checked this email and its attachments for viruses. But you should still
check any attachment before opening it. We may have to make this message and
any reply to it public if asked to under the Freedom of Information Act,
Data Protection Act or for litigation. Email messages and attachments sent
to or from any Environment Agency address may also be accessed by someone
other than the sender or recipient, for business purposes. If we have sent
you information and you wish to use it please read our terms and conditions
which you can get by calling us on 08708 506 506. Find out more about the
Environment Agency at www.environment - agency.gov. uk

Information in this message may be confidential and may be legally
privileged. If you have received this message by mistake, please notify the
sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should
still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to
under the Freedom of Information Act, Data Protection Act or for litigation.
Email messages and attachments sent to or from any Environment Agency
address may also be accessed by someone other than the sender or recipient,
for business purposes.

If we have sent you information and you wish to use it please read our terms
and conditions which you can get by calling us on 08708 506 506. Find out
more about the Environment Agency at www.environment - agency.gov. uk

Remember WORD is a word processor and The TOAD Editor is an PROGRAM EDITOR.

Programming text should always be in fixed point font.

Word processing text is meant to be seen by humans and therefore it has things
like internal tab positions that can be set.

Program text is meant to be seen by programmers and is input to a compiler. So
there are different needs. The Toad Editor does not (and should not) use tab
positions. It uses the TAB key to enter a tab character that causes x number of
physical spaces to be skipped.
image001.jpeg

Yes, mein capitan. I don’t expect Toad to be a word processor, no complaint
intended, just needed to understand how it does work.

Erwin Rollauer wrote:

Remember WORD is a word processor and The TOAD Editor is an PROGRAM EDITOR.

Programming text should always be in fixed point font.

Word processing text is meant to be seen by humans and therefore it has
things like internal tab positions that can be set.

Program text is meant to be seen by programmers and is input to a compiler.
So there are different needs. The Toad Editor does not (and should not) use
tab positions. It uses the TAB key to enter a tab character that causes x
number of physical spaces to be skipped.

Since I may have come over as a little bit of a grouch let me add a suggestion
so as to show I am a sweet grouch.

Change your toad setting so it does not use tabs but replaces them with spaces.
You still hit the tab key but it generates the appropriate number of spaces. The
reason for this is that if you uses some other editor (notepad in an emergency)
to view the source you will not see things miss-aligned because no word
processor applications often have default tab positions that may or may not be
settable.

Go to View è Toad options è Editor è behaviour

In the tabs section chose USE SMART TAB or USE SPACES but not USE TABS
image001.jpeg