Skip to content

20 v_code

Display code with syntax highlighting.

Props

  • value: { type: String }
  • type: { type: String, default: 'txt' } (Supported types: js, javascript, json, txt, html, css, xml, sql, handlebars)
  • highlight: { type: Boolean, default: false }

Example

HTML
<v_code value="select * from test" :highlight="true" type="sql"></v_code>