@@ -0,0 +1,1712 @@
+import javafx.application.Application;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.web.WebEngine;%0Aimport javafx.scene.web.WebView;%0Aimport javafx.stage.Stage;%0A%0Apublic class WebWebViewWithMathjax extends Application %7B%0A%0A    // OFFLINE VERSION%0A    // Install MathJax on Debian: %22aptitude install libjs-mathjax%22%0A    //public static final String MATHJAX_URL = %22/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_HTML-full%22;%0A    %0A    // ONLINE VERSION%0A    public static final String MATHJAX_URL = %22https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full%22;%0A%0A    public static final String HTML = %22%3C!DOCTYPE html%3E%5Cn%22%0A        + %22%3Chtml%3E%5Cn%22%0A        + %22%3Chead%3E%5Cn%22%0A        + %22    %3Cmeta charset=%5C%22UTF-8%5C%22%3E%5Cn%22%0A        + %22    %3Cscript type=%5C%22text/x-mathjax-config%5C%22%3E%5Cn%22%0A        + %22        MathJax.Hub.Config(%7B%5Cn%22%0A        + %22            tex2jax: %7BinlineMath: %5B%5B%5C%22$%5C%22,%5C%22$%5C%22%5D,%5B%5C%22%5C%5C%5C%5C(%5C%22,%5C%22%5C%5C%5C%5C)%5C%22%5D%5D%7D%5Cn%22%0A        + %22        %7D);%5Cn%22%0A        + %22    %3C/script%3E%5Cn%22%0A        + %22    %3Cscript type=%5C%22text/javascript%5C%22 src='%22 + MATHJAX_URL  + %22'%3E%3C/script%3E%5Cn%22%0A        + %22%3C/head%3E%5Cn%22%0A        + %22%3Cbody%3E%5Cn%22%0A        + %22    %3Cp%3E%5Cn%22%0A        + %22        When $a %5C%5Cne 0$, there are two solutions to %5C%5C(ax%5E2 + bx + c = 0%5C%5C) and they are%5Cn%22%0A        + %22        $$x = %7B-b %5C%5Cpm %5C%5Csqrt%7Bb%5E2-4ac%7D %5C%5Cover 2a%7D.$$%5Cn%22%0A        + %22    %3C/p%3E%5Cn%22%0A        + %22%3C/body%3E%5Cn%22%0A        + %22%3C/html%3E%22;%0A%0A    public void start(Stage stage) %7B%0A        final WebView browser = new WebView();%0A        final WebEngine webEngine = browser.getEngine();%0A%0A        webEngine.loadContent(HTML);%0A%0A        Scene scene = new Scene(browser);%0A%0A        stage.setScene(scene);%0A        stage.show();%0A    %7D%0A%0A    public static void main(String %5B%5D args) %7B%0A        launch(args);%0A    %7D%0A%0A%7D%0A

Add a snippet.