How to set Bold/Italic

SyntaxEditor for WPF Forum

Posted 8 years ago by Xinen Lee
Version: 16.1.0632

Hi Actipro

I am changing my fonts/font size by setting IHighlightingStyleRegistry.FontFamilyName and FontSize.

However when I try to set IHighlightingStyleRegistry.Bold/Italic to true, the bold/italic settings of my text are never changed to true. It looks like the settings always use SyntaxEditor's FontStyle and Weight and not the IHighlightingStyleRegistry's setting.

I have set IsBoldEditable and IsItalicEditable to true.

Is this implemented?



Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Xinen,

There shouldn't be any issues with that.  If you run the "Highlighting Style Viewer" QuickStart, select Keyword, and check the Bold option you should see the editor's keywords bold down below.  That sample is updating the ambient registry so if you switch back to another sample like the SDI Code Editor, you can see the bold keywords there too.  I confirmed italics works too.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.