How can we improve the Windows dev platform?

Add support for (custom) syntax-highlighting for fenced code blocks in MarkdownTextBlock

Now that the MarkdownTextBlock control supports fenced code blocks (```) in version 1.4, language-specific syntax highlighting *would* be the next step (e.g. ```javascript)
But that would be beyond what the control *should* do in terms of separation of concerns.
That's why MarkdownTextBlock could offer a way to register some kind of callback function which is called whenever the control comes across a fenced code block with a specified language ID. The function would get the original text and is expected to return either XAML objects or maybe a more abstract of representation of colored text which is then handled by the control.

3 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Roland WeigeltRoland Weigelt shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base