Using One Markdown to Highlight Source Code for Programming Language for OneNote
2019-11-23 16:43
One Markdown 2.0 add highlight syntax for code block.
You just need to add programming language name after begin tag ```.
You just need to add programming language name after begin tag ```.
Markdown Code Block with Programming Language Name
Follow code block is a C program. (Add c after code block start tag ```)
Follow code block is a C program. (Add c after code block start tag ```)
```c
#include<stdio.h>
void main()
{
printf("Hello world!");
}
```
Attention: One Markdown just support follow programming language name:
bash, c, cpp, csharp, css, pas, java, js, perl, pl, php
Markdown Code Block -> One Markdown -> One Markdown Server -> OneNote
Demonstration
bash, c, cpp, csharp, css, pas, java, js, perl, pl, php
Markdown Code Block -> One Markdown -> One Markdown Server -> OneNote
- Insert code block with programming language name into a page in One Markdown.
- One Markdown will auto sync this page to "One Markdown Server".
- And "One Markdown Server" will auto sync this page to OneNote.
Demonstration
Related Documents
- Create Heading Anchors (Bookmark) in One Markdown, and Save to OneNote.
- Using Markdown to Create Table of Contents of Headings for OneNote
- Using Markdown to Create LaTeX Image Equation for Android OneNote
- Insert Checkbox into OneNote from Android One Markdown
- Using Markdown to Create Flow Chart for OneNote