Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149682 | Dec 5,2019 10:40 AM UTC | Dec 16,2019 06:39 AM UTC | WinForms | 8 |
![]() |
Tags: EditControl |
this.editControl1.ApplyConfiguration(Syncfusion.Windows.Forms.Edit.Enums.KnownLanguages.CSharp); |
At the initialization of config language enable StartComment property by assigning your comment prefix string. |
<ConfigLanguage name="Python" StartComment="#" > |
Lexem with type comment should be added inside the lexems. |
<lexems>
<lexem BeginBlock="(" Type="Operator" />
<lexem BeginBlock=")" Type="Operator" />
<lexem BeginBlock="'" Type="Operator" />
<lexem BeginBlock="car" Type="KeyWord" />
<lexem BeginBlock="cdr" Type="KeyWord" />
<lexem BeginBlock="cons" Type="KeyWord" />
<lexem BeginBlock="#" EndBlock="\n" IsEndRegex="true" Type="Comment" IsComplex="true" OnlyLocalSublexems="true" />
</lexems> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.