Formatting a code block in One Note

There is a tool available for formatting the code snippet in OneNote — Note Highlight project —

Well and good; with some added complexity of installing the plugin and so on…

Is there any alternative?

Well, not the code syntax formatting the way the plugin does but a properly indented code with a decent readability — see if that suffices for you.

Step 1

Paste the code into a beautify engine such as,

Beautify the code on the site. Copy this code.

Step 2

Paste the code with Keep Source formatting option:

Step 3

Select the pasted code and go to the Home tab and select the Code style for the selected code. It would look something like this:

The resultant code is readable and understandable.

Have a good day!




Android Dev | Android Hacker

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to create your first web application with Node.js and Express

‘this’ is that(window) in JavaScript

Rust: References

Beyond Cookies: Data Storage for Web Applications

What’s new in Angular 7.0 and how you can upgrade

When and why you should use a Map instead of an Object in JavaScript

However, Harbaugh’s window of opportunity to build Michigan Football

A Look at Javascript Closures

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Manish Sharma

Manish Sharma

Android Dev | Android Hacker

More from Medium

Easy communication on the web plays an important role in achieving success

healthcare access5 Ways Artificial Intelligence Will Impact Healthcare

Biometric remote patient monitoring: what most people aren’t talking about (yet)

Scheduling Through Linear Programming