13 thoughts on “Castalia structural highlighting inside conditional blocks is only partial”
I have found that the structural highlighting works better in units that doesn’t have a DFM. But would prefer it all the time, and the option of thickness of the lines too.
I’d like to see some cutomisation options too – eg to have the lines “inside” the block, rather than as bracket-shaped lines outside. (Ie, just a vertical line filling up the block left edge, like Sublime text does.) Or, to fill in the whitespace with the block colour – that could be really nice, especially with very subtle / pastel colouring.
On the plus side, the editor doesn’t flicker with the Castalia features. When I bought a copy of Castalia, I had to uninstall it because the editor flickered too much – it was like a flourescent light. Seattle’s editor is rock solid, even more so than XE7 or XE8’s!
David Millington Regarding the editor flicker: As Jacob Thurman is now working for Embarcadero, he has added some very useful interfaces to actually hook into the drawing code of the editor without hacks. That’s why it’s so smooth. If you look in the open tools api interfaces you’ll see a new one with callbacks for drawing before and after an line in the editor is drawn. I’m curious when others will use this to bring fancy things in the editor.
Steffen Binas The Seattle build of Bookmarks actually uses exactly that interface 🙂
I think one reason there is much less flicker is also because Castalia invalidated the editor window as a whole, a lot. The code inside the IDE now, though, doesn’t – it only invalidates specific lines or regions that need updating.
Steffen Binas David Millington It would be nice if there were examples on how to use these new interfaces, even if it is just drawing all over the editor (in this case).
I still prefer Lazarus IDE’s auto-dim or Low-lighting of inactive $IFDEF code. I’ve tweaked my color scheme so the inactive portion of code doesn’t distract me at all and clearly shows what code is active – just awesome.
I have found that the structural highlighting works better in units that doesn’t have a DFM. But would prefer it all the time, and the option of thickness of the lines too.
Well, no .dfm here.
As for thickness/intensity – I’ll be tuning down the colors to bleak pastels for sure.
🙂 I hope that it gets fixed in the next update…
I’d like to see some cutomisation options too – eg to have the lines “inside” the block, rather than as bracket-shaped lines outside. (Ie, just a vertical line filling up the block left edge, like Sublime text does.) Or, to fill in the whitespace with the block colour – that could be really nice, especially with very subtle / pastel colouring.
On the plus side, the editor doesn’t flicker with the Castalia features. When I bought a copy of Castalia, I had to uninstall it because the editor flickered too much – it was like a flourescent light. Seattle’s editor is rock solid, even more so than XE7 or XE8’s!
David Millington Regarding the editor flicker: As Jacob Thurman is now working for Embarcadero, he has added some very useful interfaces to actually hook into the drawing code of the editor without hacks. That’s why it’s so smooth. If you look in the open tools api interfaces you’ll see a new one with callbacks for drawing before and after an line in the editor is drawn. I’m curious when others will use this to bring fancy things in the editor.
Steffen Binas The Seattle build of Bookmarks actually uses exactly that interface 🙂
I think one reason there is much less flicker is also because Castalia invalidated the editor window as a whole, a lot. The code inside the IDE now, though, doesn’t – it only invalidates specific lines or regions that need updating.
Steffen Binas David Millington It would be nice if there were examples on how to use these new interfaces, even if it is just drawing all over the editor (in this case).
Nicholas Ring I plan to do a Part 3 of my series on drawing to the code editor sometime soon. Feel free to remind me…
David Millington My list to remind you of things is so long that you will live forever to get it all done 😀
I do prefer the highlighting CnPack provides over Castellia. Way easier on the eye and at a glance readable.
I still prefer Lazarus IDE’s auto-dim or Low-lighting of inactive $IFDEF code. I’ve tweaked my color scheme so the inactive portion of code doesn’t distract me at all and clearly shows what code is active – just awesome.
Graeme Geldenhuys That is neat! That would be nice feature.
Lars Fosdal Nicholas Ring The width of one for the lines is
hardcoded.