pyscripter 684 Posted October 23 (edited) SynEdit now has annotated Scrollbars. In this screenshot you can see in the scrollbar: the position of the multiple carets (full blueish line) lines with errors (full red line) the position of the bookmarks (mini bluish marks on the left) line modification info (on the right side) alpha-blended slider This feature is on the multicaret branch. Zoom In/Out/Reset functionality has also been implemented. You can still vote on this poll to influence future development. See the technical details. See also SynEdit now supports mulit-caret, multi-selection editing - I made this - Delphi-PRAXiS [en]. Edited October 24 by pyscripter 3 2 Share this post Link to post
shineworld 73 Posted October 24 The best Editor component, better than native Delphi IDE editor (IMO). Share this post Link to post
pyscripter 684 Posted Saturday at 02:52 AM Structural highlighting has also been added. Technical details. 5 5 Share this post Link to post
pyscripter 684 Posted Saturday at 11:00 PM Flow control symbols have also been added: Technical details. 2 4 Share this post Link to post
pcoenen 1 Posted Sunday at 11:49 AM > Highlighters need to override this method to support this feature. Currently the Pascal, DWS and python highlighters do that. Hi, tried Flow control symbols. It seem to work with Pascal as Highlighter but not with DWS. Delphi 12.2 Patch 1. Share this post Link to post
pyscripter 684 Posted Sunday at 11:57 AM 7 minutes ago, pcoenen said: but not with DWS. Delphi 12.2 Patch 1 Works here with the same version. Are you using the latest sources now from the master branch. Share this post Link to post
pcoenen 1 Posted Sunday at 12:28 PM Yes, double checked, guess I'm doing something wrong. I switched to the Pascal Highlighter. Thank you for the new features, very nice. Share this post Link to post
John R. 18 Posted yesterday at 08:52 AM Fantastic work! Thank you for your contributions. If I may, while this component is very powerful, I find that a serious limitation is the number of languages that it supports and the difficulty to add new languages. Many common languages are missing (such as Powershell, Rust, TypeScript, Go...) and creating highlighters is complicated. @pyscripter as you know the internals better than anyone, would it be possible to imagine a way to import highlighters from other projects such as highlight.js: https://github.com/highlightjs/highlight.js/blob/main/src/languages/powershell.js ? Or would it be better to imagine a simpler way to define highlighters ? Share this post Link to post
pyscripter 684 Posted yesterday at 10:26 AM (edited) 2 hours ago, John R. said: Fantastic work! Thank you for your contributions. If I may, while this component is very powerful, I find that a serious limitation is the number of languages that it supports and the difficulty to add new languages. Many common languages are missing (such as Powershell, Rust, TypeScript, Go...) and creating highlighters is complicated. @pyscripter as you know the internals better than anyone, would it be possible to imagine a way to import highlighters from other projects such as highlight.js: https://github.com/highlightjs/highlight.js/blob/main/src/languages/powershell.js ? Or would it be better to imagine a simpler way to define highlighters ? There are about 75 highlighters and It is not too difficult to add new ones. You can start with a highlighter for a language that is quite similar and adapt it, e.g. change the keywords. There is also SynGen that helps you create a highlighter from scratch. You can request a highlighter and someone may have or contribute a new one. Regarding Powershell have a look at this discussion. It contains an extended General highlighter that can be adapted to practically any language. PSPad uses that unit to support syntax highlighting for 180 programming languages. Edited yesterday at 11:02 AM by pyscripter 1 Share this post Link to post