Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-02

new editor feature in Lazarus SVN

9 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I'm catching up on new Lazarus IDE features since mid December - you guys have been busy I see! ;-)

I noticed that if I place the cursor on begin..end pair or on a property like "Width", similar properties are highlighted all over the code. What is this used for? The screenshot shows what I mean.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 4165 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090202/aabca888/attachment-0001.png

Reply by email

Paul Ishenin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
Hi, I'm catching up on new Lazarus IDE features since mid December - you guys have been busy I see! ;-) I noticed that if I place the cursor on begin..end pair or on a property like "Width", similar properties are highlighted all over the code. What is this used for? The screenshot shows what I mean.

This feature is called markup current word and you can tune it in the Options -> Editor -> Automatic features.

It can be used to highlight your identifiers. Martin will probably explain more if you will ask further.

Best regards,
Paul Ishenin.

Reply by email

Graeme Geldenhuys
to Paul Ishenin
Paul Ishenin wrote
It can be used to highlight your identifiers. Martin will probably explain more if you will ask further.

Ah, I thought it might be the start to something like "SyncEdit" - similar to what the post-Delphi7 IDE's include.

See the following page for a SyncEdit demo.
http://dn.codegear.com/article/34323

Thanks for the info though. I'll play with the settings.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Martin Friebe
to Graeme Geldenhuys

I know SyncEdit, and got it on my list, for now it's display only.

In order to do SyncEdit, SynEdit will need to get a concept of different States (at the moment this is handled by SourceEditor for things like incremental search).

This will also be useful for templates, that can automatically invoke SyncEdit:
" for i := low([]) to high([]) do"
=> when you start editing the low[] placeholder, the same text appears in the high placeholder.

Martin

Graeme Geldenhuys wrote 26 lines
On Mon, Feb 2, 2009 at 10:53 AM, Paul Ishenin wrote: > It can be used to highlight your identifiers. Martin will probably > explain more if you will ask further. > Ah, I thought it might be the start to something like "SyncEdit" - similar to what the post-Delphi7 IDE's include. See the following page for a SyncEdit demo. http://dn.codegear.com/article/34323 Thanks for the info though. I'll play with the settings. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Graeme Geldenhuys
to Martin Friebe
Martin Friebe wrote
I know SyncEdit, and got it on my list, for now it's display only.

No problems, I was only curious. So far you guys are doing excellent work. Well done to all!

PS:
Another nice change is the Editor Properties layout. It is *much* nicer than before - easier to read. :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Martin Friebe
to Graeme Geldenhuys: I'm catching up on new Lazarus IDE features since mid December - you guys have been busy…

Hi,

there are a couple of options to control the current-word-markup feature. They are on the "Automatic feature" page of the editor option (plus color settings on the color page)

Note: If you have a block selected, the selected block will be used as term to highlight, rather than the word under caret. Some settings are only for block, others only for current-word

1) You can change the time after which highlighting kicks in. You can also disable the Timer completely, in which case you can still toggle Highlighting by Keyboard

2) Toggle by Keyboard (default Alt-M)
You can toggle the highlight to any chosen word, or selection by pressing Alt-M while at the word, or while having selected the desired block.
Pressing Alt-M again will set the "fixed" word to the word at your new location. To untoggle, press Alt-M twice at the same location (The exact behaviour is: If your current selected block, or (if no block selected) the current word under cursor is the same term as the word you toggled-fixed, this will clear the fixed word. Otherwise the fixed word will be set)

3) You can ignore Keywords. This is a hardcoded list of Keywords, and will ignore them even if they are used in a context where they would not be seen as Keyword. The list comes from the highlighter, so this only works together with the highlighter.

4) for current-word only:
You can choose to only highlight exact matches(match word boundaries) instead of any occurrence including occurrences in other words. By Default this applies to words shorter than 3 chars.

5) blocks only:
by default leading/trailing spaces are ignored/stripped from the search term

To disable the feature completely:
Set all colors (FG,. BG and Frame) to default (check the tickbox); make sure no Styles (bold, italic) are selected.

This will be regognied, and the Editor is clever enough and will not even trigger the search for other words.

Best Regards
Martin

Graeme Geldenhuys wrote 28 lines
Hi, I'm catching up on new Lazarus IDE features since mid December - you guys have been busy I see! ;-) I noticed that if I place the cursor on begin..end pair or on a property like "Width", similar properties are highlighted all over the code. What is this used for? The screenshot shows what I mean. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ------------------------------------------------------------------------ ------------------------------------------------------------------------ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Martin Friebe
to dmitry boyarintsev

Ah, good...

I need to update the trailing spaces section too. and the indent section,....

dmitry boyarintsev wrote 14 lines
Martin, I've copy-pasted your email to the wiki: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options imho, it's necessary to add "Default Lazarus like settings" and "Delphi 7 like settings" for the editor, just like Paul added for the object inspector :) Thanks, Dmitry _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Paul Ishenin
to dmitry boyarintsev: Martin, I've copy-pasted your email to the wiki:…
dmitry boyarintsev wrote 7 lines
Martin, I've copy-pasted your email to the wiki: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options imho, it's necessary to add "Default Lazarus like settings" and "Delphi 7 like settings" for the editor, just like Paul added for the object inspector :)

For the object inspector I added delphi 2007 settings :)

Best regards,
Paul Ishenin.

Reply by email