Trang này chưa có bản dịch Tiếng Việt. Bạn đang xem bản gốc (English).

Code Snippet

Usage

Add the CodeSnippet component

Add paths you want to import

Use the Glob Import pattern to add paths.

Use in markdown files

Highlighting Lines

Translates to:

Using Offset Props

Fetching From a Remote URL

Props

filestring
The path to the imported file
urlstring
A remote URL to fetch the code from
titlestring
Code block title
languagestring
Code block highlight language
highlightsstring
Code block highlights lines
metastring
Code block meta
startnumber
Starting line index
offsetnumber
Number of lines to display from start