Apidog Markdown
  1. Basic Syntax and Features
Apidog Markdown
  • Welcome to Apidog Markdown
  • Basic Syntax and Features
    • Title and Text
    • Lists & Tables
    • Image
    • Video
    • Code
    • Icon
    • Tailwind CSS Supports
  • Components
    • Admonition
    • Hightlight
    • Accordion
    • AccordionGroup
    • Multiple Columns
    • Card
    • Card Group
    • Image Frame
    • Step
    • Tab
    • Tip
    • Copy to Clipboard
    • Text Hover Tip
    • Text Drawing - Mermaid
      • Graph
      • Sequence Diagram
      • Class Digram
      • State Diagram
      • Entity Relationship Diagram
      • Journey Map
      • Gantt Chart
      • Pie Chart
    • Formula
      • Inline Formula
      • Block-level Formula
  • Other Questions
    • Shortcuts
  1. Basic Syntax and Features

Code

Inline Code#

Wrap the code within a single backquote `. Use the syntax for inserting short code snippets in the text, such as variable names, function names, or brief code statements.
print("Hello, World!")
Code:
`print("Hello, World!")` 

Code Blocks#

Wrap the code within three backquotes ```. Use this to display longer code snippets, such as function definitions, algorithm implementations, etc. It helps to clearly show the format and structure of the code.

Example#

def say_hello(name):  
    print(f"Hello, {name}!")  
say_hello("World")
Code:

Specifying a Language#

Specify the programming language after the three backquotes ```. This will apply syntax highlighting according to the programming language. If not specified, it will still display as a code block but without syntax highlighting.
This is a code block without a specified language.  
System.out.println("Hello, World!");  
Code:

Code:

Code:
Previous
Video
Next
Icon
Built with