Recent

Author Topic: begin .. end; heighlighter request  (Read 4956 times)

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
begin .. end; heighlighter request
« on: March 16, 2005, 12:51:22 am »
Sometimes when writing long code with a lot of begin ends or try ends or case ends you get lost and mix the number of ends.

Would it be possible that lazarus highlights begins and ends?

Perhaps just a key-shortcut which if pressed in a block would highlight the given blocks begin and end.

I know that many constructs use end without begin so it might be difficult there. But for the key-shortcut way I think they can be ignored(not safely, but can :D )

Thanks,

Ales

marmin

  • Jr. Member
  • **
  • Posts: 86
    • http://www.naton.org
begin .. end; heighlighter request
« Reply #1 on: March 16, 2005, 04:59:58 pm »
That's a very good idea!
Like, you hover above an 'end', and in a pop-up you'll see to which 'begin' it belongs
Marmin^.Style
Location: Pointer Land!

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
begin .. end; heighlighter request
« Reply #2 on: March 17, 2005, 03:41:37 pm »
Well Vincent later told me that there's a "find begin" and "jump to the other side" funcionality in the search part(you can add key shortcuts)
For example if I go into a block and press Ctrl+B I get the cursor to the corresponding begin.
If I press Ctrl+D on begin/end I jump to the corresponding end/begin.

Lightning

  • Sr. Member
  • ****
  • Posts: 422
begin .. end; heighlighter request
« Reply #3 on: March 18, 2005, 12:00:42 pm »
Yes but highlightning would be verry nice too, i don't think it's verry hard to do, just needs time, it's similar to ()[]{} highlightning, jumping ca be distracting while highlightning is quite nice, what do you think would be best, changing color, adding italic style, highlightning the whole line, or something else ?
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

 

TinyPortal © 2005-2018