prism.js

Show HTML in WebView using Prism.js

天涯浪子 提交于 2019-12-22 14:15:36
问题 I am having trouble showing HTML in JavaFX 's WebVew using Prism.js . I am able to successfully show a Java example, but the HTML example seems to want to show the HTML as it appears when you visit a site instead of just showing the syntax string. What is the correct way to display HTML in JavaFX 's WebView using Prism.js ? Java Example (Displaying correctly) import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.StackPane; import javafx.scene.web

Highlights don't work in external template

你。 提交于 2019-12-01 14:31:18
I am a noob with angularjs and I have a problem. I am using prism.js or highlights.js in my web (same result). It works correctly into index.html but It doesn't work in other templates that I load with ngRoute. I believe that the problem is angularjs only it renders one more time the html and it doesn't work when I load my content-principal.html. INDEX.HTML //<pre><code class="language-javascript"> colour syntax is ok //</code></pre> APP.JS ionicEsApp.config(function($routeProvider) { $routeProvider. when('/', { templateUrl: 'templates/content-principal.html', //controller: 'IonicEsController'

Highlights don't work in external template

若如初见. 提交于 2019-12-01 12:46:57
问题 I am a noob with angularjs and I have a problem. I am using prism.js or highlights.js in my web (same result). It works correctly into index.html but It doesn't work in other templates that I load with ngRoute. I believe that the problem is angularjs only it renders one more time the html and it doesn't work when I load my content-principal.html. INDEX.HTML //<pre><code class="language-javascript"> colour syntax is ok //</code></pre> APP.JS ionicEsApp.config(function($routeProvider) {

Prism HTML highlighter

不打扰是莪最后的温柔 提交于 2019-11-30 17:19:42
I'm using Prism and its working well for CSS: <pre><code class="language-css">p { color: red }</code></pre> but i can't get it working for html: <pre><code class="language-html"><p class="red">red text</p></code></pre> I have 2 problems: < and > are represented as tags, not as text, but i could replace it by < and > More important, even replaced as shown in problem 1, the highliter will not highlight any code and everything is just black. Despite that it is working for CSS, whole code looks like this: <!DOCTYPE html> <html> <head> <link href="prism.css" rel="stylesheet" /> </head> <body>

Prism HTML highlighter

戏子无情 提交于 2019-11-30 00:50:23
问题 I'm using Prism and its working well for CSS: <pre><code class="language-css">p { color: red }</code></pre> but i can't get it working for html: <pre><code class="language-html"><p class="red">red text</p></code></pre> I have 2 problems: < and > are represented as tags, not as text, but i could replace it by < and > More important, even replaced as shown in problem 1, the highliter will not highlight any code and everything is just black. Despite that it is working for CSS, whole code looks