Skip to content

Commit 02f4a39

Browse files
committed
Exposed <iqui-highlightjs /> component's raw/highlighted/selected syntax
1 parent 1f01891 commit 02f4a39

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"editor.formatOnSave": true,
66
"files.exclude": {
77
".git": true,
8-
"./node_modules": true
8+
"node_modules": true,
9+
"dist": true
910
},
1011

1112
"todohighlight.isEnable": true,

projects/iqui-ngx/src/lib/components/code/highlight-js/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ export class HighlightJsComponent implements OnInit, OnDestroy, OnChanges, After
258258
*/
259259
private _selectedSyntax = '';
260260
/**
261-
* Gets selected syntax or if none selected falls back to full displayed (filtered) syntax
261+
* Gets selected syntax
262262
*/
263263
public get selectedSyntax() {
264-
return this._selectedSyntax || this._rawSyntax;
264+
return this._selectedSyntax || '';
265265
}
266266

267267
constructor(private _el: ElementRef, private _cd: ChangeDetectorRef) {}

0 commit comments

Comments
 (0)