WaveCalender 5: Wave Code Prettifier

In wave you would often like to show some code to get some feed back on it. A gadget which can help with it is wave code prettifier by Milan Andrejevic . It is a gadget you can put into your Wave and you can then get formatted code in your wave.
The code gets highlighted as you type. The language is determinate automatically, or you can overwrite the control.

The gadget XML can be found hire.

codeprettyfier

You can enter you non formatted text on the top in the small window, and then the formatted text will be showed in the button panel. The buttum panel will be expanded as a result of data typed.

When you type something data is directly shared to the other users. If you type fast on a large text you are sometime send to the buttom of the field and complete the text at the end.

I would also like to see that gadget to have difference between edit mode and view mode. That way you would only see the formatted text as an ordinary user.

The gadget is written in Javascript and Jquery and uses a lot of standard libraries for code highlighting. The code in the gadget is only 29 lines. That is impressive.

Bookmark and Share

Published by

avatar

Daniel Graversen

Founder of masteringwave.com and SAP Integration consultant at figaf.com

3 thoughts on “WaveCalender 5: Wave Code Prettifier”

  1. Very impressive for only 29 lines of code. This will definitely come in handy when you’re trying to share or get feedback on code.

  2. This gadget I mentioned to the Project Management Group as a gadget that will be so useful for a project and has nothing to do with pure PM.

Leave a Reply

Your email address will not be published. Required fields are marked *