Completed
Last Updated: 24 Sep 2019 14:03 by ADMIN
Release R3 2019
ADMIN
Tanya
Created on: 11 Nov 2015 09:31
Category: UI for WPF
Type: Feature Request
15
New Control: Syntax Editor
Create control for fast editing/visualization of source code.
13 comments
ADMIN
Petar Mladenov
Posted on: 24 Sep 2019 14:03

Hello Olivier,

 

Thank you for noticing this issue. It is fixed now.

Could you please submit this feature request by yourself and also provide some links with additional explanation on the EBNF definition. If possible also add your business scenario where you need this implemented. We will later approve it most probably.

 

Regards,
Petar Mladenov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Olivier
Posted on: 24 Sep 2019 12:36

Hi Petar,

Thanks for adding these features ! I guess https://feedback.telerik.com/wpf/1431060-syntaxeditor-add-api-for-inserting-code-snippets should be moved to "SyntaxEditor" instead of "TimeLine"?

 

Another suggestion will be to support EBNF-like grammar definition files. We have our own language and we would like to give it to RadSyntaxEditor to get code highlighting!

Best regards, 

ADMIN
Petar Mladenov
Posted on: 24 Sep 2019 11:29

Hi Werner and Oliver,

Thank you for your feedback. We would also appriciate any comments from the beta release of the SyntaxEditor - R3 2019 from this month.

We logged the feature requests for breakpoints and code snippets:

https://feedback.telerik.com/wpf/1431060-syntaxeditor-add-api-for-inserting-code-snippets

https://feedback.telerik.com/wpf/1431059-syntaxeditor-implement-adding-breakpoints-via-ui-or-via-code

 

Regards,
Petar Mladenov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Werner
Posted on: 19 Sep 2019 19:25
... thanks for listening (and of course implementing) customer requirements - looking forward using it :-)
Olivier
Posted on: 18 Sep 2019 12:40

Hi Petar,

I absolutely! Tab key could helps us to navigate between token.

For instance typing "func" then "TAB" will call the snippet manager and will insert the following code:

RETURNEDTYPE function FUNCTIONAME()
{
   //Type your code here
}

So we can write the returned type of the function then pressing "TAB" or "ENTER" will switch to the next token:

void function FUNCTIONAME()

    //Type your code here
}

Finally we can write the second token then pressing "ENTER" to close the snippet management:

void function MyFunction()
{
    //Type your code here

Best regards,

Olivier 

ADMIN
Petar Mladenov
Posted on: 02 Sep 2019 08:25
Hi Olivier,

Thank you for this feature suggestion. I guess you need code template that you can iterate with Tab key and insert your variable / method / parameter names ?

Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Olivier
Posted on: 30 Aug 2019 13:33

Hi Petar,

Another interesting feature would be a "Snippets manager". This component would help us to write some code block according to templates.

 

Best regards,
Olivier

ADMIN
Petar Mladenov
Posted on: 13 Aug 2019 08:59
Hi Olivier,

Thank you for these requirements. We cannot promise on out of the box support for these features in version 1 , but we will definitely think of a ways for achieving them in future.

Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Olivier
Posted on: 06 Aug 2019 10:21

Hi Petar,

Glad to hear that these features are planned!

    - We want to setup breakpoint on the left (near to the line numbers). 

We would like to have the ability to tag a line so yes we would like to highlight the line.
When running our program we will stop the execution to the lines that have a breakpoint so we could set an icon which will be displayed near to the line numbers column. As a result the ability to set an icon to the left of a code line would be enough for us.

    - We want contextmenu (example: Find all instance/Go to definition/...)

We plan to use a language server so it will be great to have a mechanism that allows us to plug our own logic for "find/replace/..."

 

Thanks & Regards,
Olivier

 

 

ADMIN
Petar Mladenov
Posted on: 06 Aug 2019 10:00
Hi Olivier,

Thank you for your requirements. Most of these features are planned for the initial version of the Code Editor (the exact component name is still not finalized). I will list some notes on the rest:

    - We want to setup breakpoint on the left (near to the line numbers). 
Can you elaborate more on this requirement - do you need only to highlight somehow certain lines ? What is the purpose of the breakpoint in your scenario ?

    - We want contextmenu (example: Find all instance/Go to definition/...)
We intend to provide Find / Replace dialog which opens on Ctrl + F. Also, there will be an API (method and / or command) for finding all matches of a given search string. So you will be able to open a custom window and bind these commands to it. Go-to definition is more like a syntax feature that requires analysis of the code provided to the editor. This is more advanced feature that we can log for future implementation.
    

Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Olivier
Posted on: 02 Aug 2019 15:01

Hello,

Here our usecase:

  • We have our own language
  • We want to provide IntelliSense (with our own results in the drop down list)
  • We want to be able to expand/collapse some scope/regions
  • We want to comment multiple lines at the same time
  • We want to setup breakpoint on the left (near to the line numbers)
  • We want to underline some contents (by settings errors on tokens)
  • We want to provide tooltip according to the mouse pointer position
  • We want syntax coloration
  • We want contextmenu (example: Find all instance/Go to definition/...)

Thanks & Regards

Olivier

ADMIN
Tanya
Posted on: 26 Oct 2018 13:53
Hi Werner,

Thank you for sharing the use cases. Please, make sure you have upvoted the item and continue following it so we can update you about status changes on it.

Regards,
Tanya
Werner
Posted on: 24 Oct 2018 20:06
My use case so far were:
General: An editor control with fixed font behaving like a text editor out of the box and providing features like line numbering, search, search/replace. (e.g. highlighting all search occurences)
Specific:
* I like to use this in applications for info text which needs no formatting
* Use in internal projects to display code (SQL, programming language code) with additional feature syntax highlighting

* Use for parsing text (using the parsing engine from the control) for e.g. SQL