Syntax Highlighting Post



Vue (pronounced /vjuː/, like view) is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable. The core library is focused on the view layer only, and is easy to pick up and integrate with other libraries or existing projects. On the other hand, Vue is also perfectly capable of powering sophisticated Single-Page Applications when used in combination with modern tooling and supporting libraries.

  <div id="app">

export default {
  created () {

<style scoped>
#app {
  text-align: center;
  height: 100%;

JavaScript, JSX and highlighted lines

class ShoppingList extends React.Component {
  render() {
    const { user } = this.props

    return (
      <div className="shopping-list">
        <h1>Shopping List for {user}</h1>        <ul>

To highlight a line: ```js{lineNumber}.


class Greeter {
  greeting: string;
  constructor(message: string) {
    this.greeting = message;
  greet() {
    return "Hello, " + this.greeting;

let greeter = new Greeter("world");


@import 'reset';

body {
  font: 100% Helvetica, sans-serif;
  background-color: #efefef;

%message-shared {
  border: 1px solid #ccc;
  padding: 10px;
  color: #333;

.message {
  @extend %message-shared;

Read next: