Forum Discussion

KapGun's avatar
KapGun
Regular Visitor
2 years ago
Solved

Code samples in this forum

How do you use

 

 

code sample

 

 

 

I keep getting error:

 

Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.

 

 

  • KapGun Seems like it worked, I use it all the time without issue. Perhaps it is something regarding what you are typing or pasting into the code block? Perhaps try pasting it into Notepad first, then copy and paste from there to the code block.

6 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    KapGun Seems like it worked, I use it all the time without issue. Perhaps it is something regarding what you are typing or pasting into the code block? Perhaps try pasting it into Notepad first, then copy and paste from there to the code block.

    • KapGun's avatar
      KapGun
      Regular Visitor

      Looks like it's working this way. Could have been something with code page or whatever.

      I was simple enough to not think about this option, although I use it relulary when pasting stuff elesewhere 😁

      Thanks.

  • Sadly, there is still no support for Power Query or DAX syntax highlighting.  But you can use the external formatters to make the code a bit easier to read.

    • KapGun's avatar
      KapGun
      Regular Visitor

      Let's hope we'll get DAX and Power Query support soon.

      Do you have any external formatters to recommend?

  • KapGun's avatar
    KapGun
    Regular Visitor
    var test  "copy and paste from there to the code block."