Skip to content

Commit 83c3912

Browse files
coliffvalorkinlexasq
authored
Add syntax highlighting to README (#6603)
Co-authored-by: Dmitriy Shekhovtsov <[email protected]> Co-authored-by: Alexey Umanskiy <[email protected]>
1 parent 9968df4 commit 83c3912

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ npm install ngx-bootstrap --save
101101

102102
Add wanted package to NgModule imports:
103103

104-
```
104+
```ts
105105
import { TooltipModule } from 'ngx-bootstrap/tooltip';
106106

107107
@NgModule({
@@ -113,7 +113,7 @@ import { TooltipModule } from 'ngx-bootstrap/tooltip';
113113

114114
Add component to your page:
115115

116-
```
116+
```html
117117
<button type="button" class="btn btn-primary"
118118
tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
119119
Simple demo
@@ -126,14 +126,14 @@ This can be done with the css file directly in the index.html, or alternatively
126126

127127
- `Bootstrap 5`
128128

129-
```
129+
```html
130130
<!--- index.html -->
131131
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
132132
```
133133

134134
- `Bootstrap 4`
135135

136-
```
136+
```html
137137
<!--- index.html -->
138138
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2">
139139
```
@@ -148,7 +148,7 @@ have a customized version of bootstrap. The consequence is that the process of d
148148
be failed, which can break the UI. In that case, we can still set the bootstrap version manually in the bootstrapping
149149
component (i.e. `AppComponent`):
150150

151-
```
151+
```ts
152152
import { setTheme } from 'ngx-bootstrap/utils';
153153

154154
@Component({...})

0 commit comments

Comments
 (0)