Skip to content

Instantly share code, notes, and snippets.

View cemartins's full-sized avatar

Carlos Martins cemartins

View GitHub Profile
@jewelsea
jewelsea / CodeEditor.java
Created December 11, 2011 23:30
CodeMirror based code editor for JavaFX
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebView;
/**
* A syntax highlighting code editor for JavaFX created by wrapping a
* CodeMirror code editor in a WebView.
*
* See http://codemirror.net for more information on using the codemirror editor.
*/
public class CodeEditor extends StackPane {
@jewelsea
jewelsea / TaskBasedSplash.java
Last active February 26, 2024 13:33
Displays a JavaFX splash page for an intensive startup task with progress monitoring
import javafx.animation.FadeTransition;
import javafx.application.Application;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.collections.*;
import javafx.concurrent.*;
import javafx.geometry.*;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.effect.DropShadow;
import javafx.scene.image.*;
@rrreese
rrreese / ReformatXML.lua
Created July 17, 2012 12:21
Reformat XML - Lua Plugin for Scite
function reformatXML()
editor:BeginUndoAction()
--Format
for m in editor:match("\r") do --remove carriage returns
m:replace("")
end
for m in editor:match("\t") do --remove tabs
m:replace("")
end