File: insertdate.js

package info (click to toggle)
libjsyntaxpane-java 0.9.6~r156-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,396 kB
  • ctags: 1,100
  • sloc: java: 6,098; xml: 116; sh: 14; makefile: 11
file content (8 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
// Import the needed java packages and classes
//importPackage(java.util);
//importClass(javax.swing.JOptionPane)

function putDate() {
  TARGET.replaceSelection("This is a dummy proc that inserts the Current Date:\n" + new java.util.Date());
  TARGET.replaceSelection("\nTab Size of doc = " + AU.getTabSize(TARGET));
}