Skip to content

Commit

Permalink
Fixed #5792 - Improve CodeHighlighter docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jan 3, 2019
1 parent d450d19 commit 2f90086
Showing 1 changed file with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,27 @@ <h3>Typescript</h3>
<div class="content-section documentation">
<p-tabView effect="fade">
<p-tabPanel header="Documentation">
<h3>PrismJS</h3>
<pre>
<code class="language-markup" pCode ngNonBindable>
npm install prismjs --save
</code>
</pre>

<p>Include the javascript and a theme css from Prism. Example for angular.json configuration of a CLI project would be as follows. Refer to the PrismJS <a href="https://prismjs.com/#basic-usage">documentation</a> for the list of available languages.</p>
<pre>
<code class="language-javascript" pCode ngNonBindable>
"styles": [
"./node_modules/prism/themes/prism.css",
//...
],
"scripts": [
"node_modules/prismjs/prism.js",
//...
]
</code>
</pre>

<h3>Import</h3>
<pre>
<code class="language-typescript" pCode ngNonBindable>
Expand All @@ -94,7 +115,7 @@ <h3>Getting Started</h3>
<code class="language-markup" pCode ngNonBindable>
&lt;pre&gt;
&lt;code class="language-css" pCode&gt;
.ui-datatable table &#123;
.ui-datatable table &#123;
border-collapse:collapse;
width: 100%;
table-layout: fixed;
Expand Down

1 comment on commit 2f90086

@slinlee
Copy link

@slinlee slinlee commented on 2f90086 Jan 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.