1- import { NgModule } from '@angular/core' ;
2- import { BrowserModule } from '@angular/platform-browser' ;
3- import { HttpClientModule } from '@angular/common/http' ;
4- import { APP_BASE_HREF } from '@angular/common' ;
1+ import { NgModule } from '@angular/core' ;
2+ import { BrowserModule } from '@angular/platform-browser' ;
3+ import { HttpClientModule } from '@angular/common/http' ;
4+ import { APP_BASE_HREF } from '@angular/common' ;
55
6- import { environment } from '../environments/environment' ;
7- import { SharedModule } from './shared.module' ;
8- import { AppComponent } from './app.component' ;
9- import { AppRoutingModule , DEMO_DECLARATIONS } from './app-routing.module' ;
6+ import { environment } from '../environments/environment' ;
7+ import { SharedModule } from './shared.module' ;
8+ import { AppComponent } from './app.component' ;
9+ import { AppRoutingModule , DEMO_DECLARATIONS } from './app-routing.module' ;
1010
11- import { HighlightModule } from 'ngx-highlightjs' ;
11+ import { HighlightModule } from 'ngx-highlightjs' ;
1212
1313import typescript from 'highlight.js/lib/languages/typescript' ;
1414import scss from 'highlight.js/lib/languages/scss' ;
1515import xml from 'highlight.js/lib/languages/xml' ;
16+ import shell from 'highlight.js/lib/languages/shell' ;
1617
1718export function hljsLanguages ( ) {
1819 return [
19- { name : 'typescript' , func : typescript } ,
20- { name : 'scss' , func : scss } ,
21- { name : 'xml' , func : xml }
20+ { name : 'typescript' , func : typescript } ,
21+ { name : 'scss' , func : scss } ,
22+ { name : 'shell' , func : shell } ,
23+ { name : 'xml' , func : xml }
2224 ] ;
2325}
2426
@@ -28,13 +30,13 @@ export function hljsLanguages() {
2830 HttpClientModule ,
2931 AppRoutingModule ,
3032 SharedModule ,
31- HighlightModule . forRoot ( { languages : hljsLanguages } )
33+ HighlightModule . forRoot ( { languages : hljsLanguages } )
3234 ] ,
3335 declarations : [
3436 AppComponent ,
3537 DEMO_DECLARATIONS
3638 ] ,
37- providers : [ { provide : APP_BASE_HREF , useValue : environment . production ? '/angular-mdc-web/' : '/' } ] ,
39+ providers : [ { provide : APP_BASE_HREF , useValue : environment . production ? '/angular-mdc-web/' : '/' } ] ,
3840 bootstrap : [ AppComponent ]
3941} )
40- export class AppModule { }
42+ export class AppModule { }
0 commit comments