Hate losing formatting when pasting in code into OneNote. Would love to have color highlighting, line numbers, etc, stay when pasting in.
Martin Lavigne commented
Yes, not just a formatter but a control that keep the original code and render a formatted version tailored with many properties (Resharper Clean-Up!). We should be allowed to change the original code to have the rendering updated automatically.
Reece Bradley commented
+1 for format as code, so will be nicely formatted and won't be tones of red underlined text.
In *INTERNET EXPLORER* [Windows 10 Creator's Update], the "right-click" context menu has an option (at the bottom): Send to OneNote. **THIS WORKS** (syntax coloring *IS* preserved!).
For some reason, **EDGE** does *NOT* have this on it's "right-click" context menu! **PLEASE 'MERGE' THIS** from IE to EDGE!
Interesting: I find that SQL Server Management Studio (SSMS) *DOES* preserve the syntax coloring via cut-and-paste [Yay!].
Also, Visual Studio Code, Visual Studio 2017 Community, & SSMS could benefit from this "right-click" context menu as well.
PS: Thanks to Gustavo -- July 23, 2015 03:01 -- his workaround through MS Word works!
Mr T commented
All code formatting is lost when I paste my code into it
Steven Spyrka commented
Please implement a feature to add code colored, formatted, indent and collapsible with line numbers and copy function like most code editors do. The following add-on is helpful but it would be better if onenote would support this feature out of the box http://www.codefoster.com/codeinonenote/
Daniel P Farrell commented
Yes! Right now when I post code into onenote it takes forever to reformat it.
Why can't there just be an inline textbox with optional line numbers and monospaced font. it also needs to have it's own font size
Rolland Bai commented
This is a real bottleneck to me. I have to switch to other note software when I need to insert codes.
Philip Kahn commented
I would suggest triggering into this mode by using gf-markdown syntax as a shortcut:
for blocks or
`code` for inline.
Evernote seems did a better jobs here.
Mario Napolitano commented
Additionally, I would love you see an "Active code block" where you can actively modify/create code in the selected language and it will abide by the syntax rules and highlighting and everything just like Notepad++ does.
For me this is the single biggest reason I use Evernote. If the feature was available in One Note, I (and probably a lot of other evernote users) would move to One Note. Especially with there new pricing model
A code editor style or box would be good, but if that's too complex then can we have an option to disable spell checking and grammar rules for text that uses the 'Code' style?
Itay Shakury commented
I saw other feedback for code editing in OneNote which I agree to be to developer specific, but this suggestion is unobtrusive and maybe useful for many other cases of technical note taking.
Yes, it would be nice to have code highlighting!
Agreed, I use OneNote as a work resource and would enjoy to be able to include my queries and whatnot and retain format and highlighting like Notepad++
A toggle to disable auto-correction / auto-capitalization, please.
I can't agree with you more.