Code Syntax Highlighting
This will just be a bunch of examples showing the different styles that are available.
You can do code blocks or inline code in backticks
.
mkdir super-rentals
app/router.js
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
});
export default Router;
app/router.js
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
+ this.route('about');
});
export default Router;
Just a little tip: you need to make sure that the code samples aren't the first or last things on the page