Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / groovy / org / txm / scripts / prototypes / groovy4editor.groovy @ 1000

History | View | Annotate | Download (204 Bytes)

1
package org.txm.scripts.test;
2

    
3
File currentFile = editor.getEditedFile()
4
String text = currentFile.getText("UTF-8")
5
currentFile.withWriter("UTF-8") { writer ->
6
        writer.write(text.replaceAll("e", "E"));
7
}