代码高亮测试

def show
  @widget = Widget(params[:id])
  respond_to do |format|
    format.html # show.html.erb
    format.json { render json: @widget }
  end
end

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

js grunt.loadNpmTasks('grunt-buddha');

The “buddha” task

Overview

In your project’s Gruntfile, add a section named buddha to the data object passed into grunt.initConfig().

var arr = [1, 3, 53];
console.log($arr);
echo 'Google world!!!'
grunt.initConfig({
  buddha: {
    options: {
      // Task-specific options go here.
      name: 'kevin'
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
})

Options

options.who

Type: String Default value: buddha

Choose an object to protect our code, with two option: buddha or alpaca

options.commentSymbol

Type: String Default value: //

A comment symbol to comment the string picture which will be add in front of the target source file