Mattias Gärtner wrote:
> space *after* the first token. Elastic tabstops is an interesting
> topic, especially for you, but it is a different topic.
A new topic was started.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fp
Zitat von Graeme Geldenhuys :
Mattias Gärtner wrote:
To me BEGIN and END clamp a logical block (that is indented by 3
characters) so they need to be aligned with all commands of the same
And this is exactly where standard Tabs or Elastic Tabstops will help.
Huh?
[...]
So when Tabs are used
Mattias Gärtner wrote:
>>> To me BEGIN and END clamp a logical block (that is indented by 3
>>> characters) so they need to be aligned with all commands of the same
>> And this is exactly where standard Tabs or Elastic Tabstops will help.
>
> Huh?
What I meant is that is Tab characters where used
Zitat von Graeme Geldenhuys :
Jürgen Hestermann wrote:
To me BEGIN and END clamp a logical block (that is indented by 3
characters) so they need to be aligned with all commands of the same
And this is exactly where standard Tabs or Elastic Tabstops will help.
Huh?
Tab width are user def
Jürgen Hestermann wrote:
>
> To me BEGIN and END clamp a logical block (that is indented by 3
> characters) so they need to be aligned with all commands of the same
And this is exactly where standard Tabs or Elastic Tabstops will help.
Tab width are user definable, where Spaces for indentation
Jürgen Hestermann schrieb:
And that's something *I* don't like. You never know which END belongs
to wheach BEGIN. I always column align all ENDs to their
corresponding BEGINs.
You missed the second part of my argumentation. I'm thinking in the
superior Modula syntax, that does not require begi
Aleksa Todorovic schrieb:
Absolutely necessary, otherwise you get nice spaghetti :-)
I just read about another Italian aberreation: ravioli code.
It seems to mean separating everything into so many pieces (classes,
procedures...), that one can't see the wood for trees any more.
Dodi
Martin schrieb:
With the new synedit OnPaste event I will try to fix the indent on
paste.
IMO you should rethink the handling of insertion/deletion. A single
Replace(start, delta, text) method can handle every case, with
positive deltas meaning insertion and negative deltas meaning deletion
On Fri, Nov 6, 2009 at 07:18, Jürgen Hestermann
wrote:
>
> I *never* put deeper level commands/blocks on the same column
Yes, that's one of the worst things one can do.
> (including
> BEGIN/END) and I *always* align the BEGIN/ENDs.
Absolutely necessary, otherwise you get nice spaghetti :-)
> T
And that's something *I* don't like. You never know which END belongs
to wheach BEGIN. I always column align all ENDs to their corresponding
BEGINs.
You missed the second part of my argumentation. I'm thinking in the
superior Modula syntax, that does not require begin-end pairs around
statement
Hans-Peter Diettrich wrote:
Mattias Gaertner schrieb:
With the new synedit OnPaste event I will try to fix the indent on
paste.
IMO you should rethink the handling of insertion/deletion. A single
Replace(start, delta, text) method can handle every case, with
positive deltas meaning insertio
waldo kitty schrieb:
for me, the TAB is to move
from field to field in a spread sheet or database... that's the way i
was taught and have worked for 30+ years...
You should distinguish between updating text and navigation. Tab
*characters* are inserted into the text, while the tab *key* is u
Mattias Gaertner schrieb:
With the new synedit OnPaste event I will try to fix the indent on
paste.
IMO you should rethink the handling of insertion/deletion. A single
Replace(start, delta, text) method can handle every case, with positive
deltas meaning insertion and negative deltas meaning
Jürgen Hestermann schrieb:
And that's kind of formatting that I don't like. My formatter would
append dangling begins to the end of the preceding part of the
statement. This is where the language syntax comes into play:
Pascal:
if a then BEGIN
...
END else BEGIN
...
END
And that's someth
Jürgen Hestermann wrote:
And that's kind of formatting that I don't like. My formatter would
append dangling begins to the end of the preceding part of the
statement. This is where the language syntax comes into play:
Pascal:
if a then BEGIN
...
END else BEGIN
...
END
And that's something
Hans-Peter Diettrich wrote:
Graeme Geldenhuys schrieb:
Also, as I mentioned, the gEdit plugin that enables elastic tabstops
has a option to automatically do conversions. So you can work with
elastic tabstops enabled, but when saved, the file gets converted back
to using spaces.
What will happen
Graeme Geldenhuys schrieb:
Source code formatting is a matter of taste. Regardless of the internal
storage of horizontal formatting, the result does not please everybody.
Yes I know that, but elastic tabstops is so far the best formatting
option I could find. And I would definitely us it for m
2009/11/4 Hans-Peter Diettrich :
>
> Source code formatting is a matter of taste. Regardless of the internal
> storage of horizontal formatting, the result does not please everybody.
Yes I know that, but elastic tabstops is so far the best formatting
option I could find. And I would definitely us
Graeme Geldenhuys wrote:
By the way, do you know if it is possible to implement the feature
request #9650 in Lazarus IDE yet? At the time of the feature request,
SynEdit did not have the capability to set variable length tabstops
(tabstops based on varying pixel widths) per line. SynEdit could on
On 03/11/2009, Martin wrote:
> Yes it is possible, and yes it should be very easy to do so.
> With one exception: Any form of auto Indent will not work with it yet
That is good to know. With Elastic Tabstops, "auto indent" is not
really needed. A simple press of the Tab key will automatically i
On 03/11/2009, Mattias Gärtner wrote:
> The IDE now has a smarter auto indentation algorithm when pressing return or
> when pasting code.
I'll try it tomorrow when I get a Lazarus update. Thanks for the note.
By the way, do you know if it is possible to implement the feature
request #9650 in La
I also tend to disable these features, since I find it a bit
disconcerting if something strange happens while I type,
me too
but it's probably just a matter of getting used to it.
If it helps speeding up typing and if it works rock solid and if the
user is aware of the mechnism it can be o
Jürgen Hestermann wrote:
What I am missing with indentation is the good old turbo pascal way
where TAB moved below the beginning of the next word in the line
above. It was very easy to arrange code with this feature, especially
if code was copied (partially) and changed afterwards so that it
Graeme Geldenhuys schrieb:
The following site explain benefits of Elastic Tabstops and bust some myths:
http://tibleiz.net/code-browser/elastic-tabstops.html
Source code formatting is a matter of taste. Regardless of the internal
storage of horizontal formatting, the result does not please
On Tue, 3 Nov 2009, Mattias Gärtner wrote:
Zitat von Henry Vermaak :
2009/11/3 Michael Van Canneyt :
I'm sorry to say, but in my experience many of these well-meant automatic
features get it wrong more often than right... I still didn't figure out
if it is me or the features that are at fa
Zitat von Paul Ishenin :
Mattias Gärtner wrote:
the code in the buffer is:
[code]
for i := 0 to 10 do
if i = j then begin
j := i;
end;
[/code]
Just a note:
The indenter indents the pasted block as whole, not every line.
This has pros and cons. Maybe eventually an option can be added to
inde
Zitat von Henry Vermaak :
2009/11/3 Michael Van Canneyt :
I'm sorry to say, but in my experience many of these well-meant automatic
features get it wrong more often than right... I still didn't figure out
if it is me or the features that are at fault :(
I guess you mean the block completion
Mattias Gärtner wrote:
the code in the buffer is:
[code]
for i := 0 to 10 do
if i = j then begin
j := i;
end;
[/code]
Just a note:
The indenter indents the pasted block as whole, not every line.
This has pros and cons. Maybe eventually an option can be added to
indent instead every line. Inde
Zitat von Paul Ishenin :
Paul Ishenin wrote:
Mattias Gärtner wrote:
* If you don't like other people styles, and always want to your
indentation you can turn the context sensitivity off. Then it will
only search in your example.
choosed this option to test
* When pasting code the indenter
2009/11/3 Michael Van Canneyt :
>
> I'm sorry to say, but in my experience many of these well-meant automatic
> features get it wrong more often than right... I still didn't figure out
> if it is me or the features that are at fault :(
I also tend to disable these features, since I find it a bit
d
On Tue, 3 Nov 2009, Mattias Gärtner wrote:
Zitat von Michael Van Canneyt :
On Tue, 3 Nov 2009, Mattias Gärtner wrote:
The IDE now has a smarter auto indentation algorithm when pressing
return or when pasting code.
Features:
Can all this be switched off ?
Of course.
Great :-)
I'm
Zitat von Paul Ishenin :
Mattias Gärtner wrote:
* If you don't like other people styles, and always want to your
indentation you can turn the context sensitivity off. Then it will
only search in your example.
choosed this option to test
* When pasting code the indenter will indent the whole
Zitat von Michael Van Canneyt :
On Tue, 3 Nov 2009, Mattias Gärtner wrote:
The IDE now has a smarter auto indentation algorithm when pressing
return or when pasting code.
Features:
Can all this be switched off ?
Of course.
Mattias
--
___
Paul Ishenin wrote:
Mattias Gärtner wrote:
* If you don't like other people styles, and always want to your
indentation you can turn the context sensitivity off. Then it will
only search in your example.
choosed this option to test
* When pasting code the indenter will indent the whole block -
On Tue, 3 Nov 2009, Mattias Gärtner wrote:
The IDE now has a smarter auto indentation algorithm when pressing return or
when pasting code.
Features:
Can all this be switched off ?
Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepas
Mattias Gärtner wrote:
* If you don't like other people styles, and always want to your
indentation you can turn the context sensitivity off. Then it will
only search in your example.
choosed this option to test
* When pasting code the indenter will indent the whole block - every
line by the s
The IDE now has a smarter auto indentation algorithm when pressing
return or when pasting code.
Features:
* Easy configuration: You don't need to setup long lists of options,
because this indenter looks at the surrounding code and mimics the
indentation. You can simply provide example code
37 matches
Mail list logo