Search
OneNoteGem
  • Home
  • Addins
    • Windows Office Addins >
      • Gem for OneNote
      • OneNote Search Bar
      • OneNote Gem - Favorites
      • OneNote Batch
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • Row to OneNote
      • Auto OneNote
      • Favorite to OneNote
      • Bridge for EndNote and OneNote
      • Anchor to OneNote
      • Anchor to OneNote for PDF
      • Bring to OneNote
      • Gem Table for OneNote
    • Windows UWP Addins >
      • Gem Menu for OneNote UWP
      • CiteBoard for OneNote
      • OneReader
      • OneMind for Windows OneNote
      • OneNote Reminder Cloud (UWP)
      • OneNote Batch Cloud (UWP)
    • Mac Addins >
      • Gem Menu for Mac OneNote
      • CiteBoard for OneNote
      • Bring to Mac OneNote
      • OneMind for Mac OneNote
      • OneNote Reminder for Mac
      • OneNote Batch for Mac
      • Fix One for Mac - Fix OneNote Login, Sync Tools
    • Android Addins >
      • CiteBoard for OneNote
      • Fix One for Android - Fix OneNote Login, Sync Tools
    • Cross-Platform Addins >
      • OneNote Reminder
      • OneMind for OneNote
      • CiteBoard for OneNote
      • Fix One - Fix OneNote Login, Sync Tools
    • Markdown Addins >
      • Gem for OneNote
      • One Markdown
    • Mind Map Addins >
      • OneNote Gem - Favorites
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • OneMind for OneNote
    • Other Addins >
      • One Markdown
      • Clip to OneNote
      • WordNote
      • OneShare
      • Fix One for Windows - Fix OneNote Login, Sync Tools
  • Buy
  • Documents
  • FAQs
  • Templates
  • Support
  • Release
  • WordNote
Gem Table for OneNote
 
 
The table of merged cells for OneNote

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 ```.
Markdown Code Block with Programming Language Name

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
  1. Insert code block with programming language name into a page in One Markdown.
  2. One Markdown will auto sync this page to "One Markdown Server".
  3. And "One Markdown Server" will auto sync this page to OneNote.
    

Demonstration
Markdown Code Block -> One Markdown -> One Markdown Server -> OneNote
 
 
Download One Markdown

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
Command Line
Tag System
MindMap Add-Ins Comparison
Search Add-Ins Comparison
One Markdown Syntax
Table Formula
Gantt

Gem Menu Templates
Repair OneNote
OneNote Download
English website Chinese website
Mobile Site
Copyright © 2011-2025 Digital GemSoft. OneNoteGem.com All Rights Reserved.