Skip to content

Commit 9008d64

Browse files
committed
docs(ngx-codejar): improve docs
1 parent ecfd45e commit 9008d64

File tree

4 files changed

+484
-828
lines changed

4 files changed

+484
-828
lines changed

apps/demo/src/app/app.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<h1>ngx-codejar</h1>
1+
<h1>ngx-codejar <a href="https://github.com/julianpoemp/ngx-codejar"><i class="bi bi-github"></i></a> </h1>
22
<p>
33
An Angular wrapper for the code-editor <a href="https://github.com/antonmedv/codejar">CodeJar</a>. It supports two-way
4-
data-binding.
4+
data-binding.<br/>For more information, issue requests or just saying thanks by giving a star see the <a href="https://github.com/julianpoemp/ngx-codejar">Github repository</a>
55
</p>
66

7-
<p>Below you see one example of how to use ngx-codejar. Each code block is an editor.</p>
7+
<p>Below you see two examples of how to use ngx-codejar - one for highlight.js and one for prism.js. Each code block is an editor, you can change it!</p>
88

9-
<h2>Example with highlight.js:</h2>
9+
<h2 style="margin-top: 60px">Example with highlight.js:</h2>
1010
<h3>my-component.component.ts:</h3>
1111
<ngx-codejar [highlightMethod]="highlightWithTS" [(code)]="hljsTSCode" [showLineNumbers]="true"></ngx-codejar>
1212

1313
<h3>my-component.component.html</h3>
1414
<ngx-codejar [highlightMethod]="highlightWithHTML" [(code)]="hljsHTMLCode" [showLineNumbers]="true"></ngx-codejar>
1515
<br/>
1616

17-
<h2>Example with prism.js:</h2>
17+
<h2 style="margin-top: 80px">Example with prism.js:</h2>
1818
<h3>my-component.component.ts:</h3>
1919
<ngx-codejar [highlightMethod]="hightlightTSWithPrismJS" [(code)]="prismTSCode" [highlighter]="'prism'"
2020
[showLineNumbers]="true"></ngx-codejar>

apps/demo/src/styles.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
@import "bootstrap-icons";
2+
13
/* You can add global styles to this file, and also import other style files */

0 commit comments

Comments
 (0)