Template:Viewer/Github/Code: Difference between revisions

Update package: OSW Core
(Install package: OSW Core)
 
(Update package: OSW Core)
 
Line 40: Line 40:
"type": "string",
"type": "string",
"label": "Highlighted lines",
"label": "Highlighted lines",
"description": "List of lines or line ranges to highlight. Line numbers are absolute and must be between start and end line of a block selection.",
"description": "List of lines or line ranges to highlight. Line numbers are absolute and must be between start and end line of a block selection. Not supported with rendered markdown.",
"example": "5,7,9-10",
"example": "5,7,9-10",
"suggested": true
"suggested": true
},
"render_markdown": {
"type": "boolean",
"label": "Render markdown",
"description": "If set, Markdown files (\".md\") are rendered instead of displaying the source text",
"autovalue": "1"
},
},
"uuid": {
"uuid": {
Line 60: Line 66:
"lang",
"lang",
"highlight",
"highlight",
"render_markdown",
"uuid"
"uuid"
]
]
Line 74: Line 81:
|lang={{{lang|}}}
|lang={{{lang|}}}
|highlight={{{highlight|}}}
|highlight={{{highlight|}}}
|render_markdown={{{render_markdown|}}}
}}(Source Code from [{{{url|}}} Github])</includeonly>
}}(Source Code from [{{{url|}}} Github])</includeonly>