
com.asayama.gwt.angular.prettify.client.Prettify Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-angular-prettify Show documentation
Show all versions of gwt-angular-prettify Show documentation
Provides GWT Angular module for google-code-prettify.
https://code.google.com/p/google-code-prettify/
The newest version!
package com.asayama.gwt.angular.prettify.client;
import com.asayama.gwt.angular.client.AbstractModule;
import com.asayama.gwt.angular.client.Angular;
import com.asayama.gwt.angular.prettify.client.directive.GwtPrettify;
import com.asayama.gwt.angular.prettify.client.directive.Prettyprint;
import com.asayama.gwt.jsni.client.JSObject;
import com.asayama.gwt.resources.client.ScriptResource;
import com.asayama.gwt.resources.client.StyleResource;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.resources.client.ClientBundle;
public class Prettify extends AbstractModule implements EntryPoint {
@Override
public void onModuleLoad() {
PrettifyScripts scripts = GWT.create(PrettifyScripts.class);
scripts.css().ensureInjected();
scripts.script().ensureInjected(JSObject.$wnd);
Angular.module(this);
service(Prettifier.class);
filter(com.asayama.gwt.angular.prettify.client.filter.Prettify.class);
directive(GwtPrettify.class);
directive(Prettyprint.class);
}
}
interface PrettifyScripts extends ClientBundle {
@Source("bower_components/google-code-prettify/bin/prettify.min.css")
StyleResource css();
@Source("bower_components/google-code-prettify/bin/prettify.min.js")
ScriptResource script();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy