Benny Neugebauer
Benny Neugebauer
@ZaLiTHkA Would it help if we supply the functionality to ignore files by a regular expression? Can you list some sample paths like: ``` myproject\directory\abc.properties myproject\directory\subdirectory\xyz.properties ``` This would help...
Thanks @oroszlanyzsolt for putting so much effort in reproducing the issue. We are a little (actually not just a little!) late but we didn't forget about the bug. Will do...
@Chris2011 thanks for keeping the topic alive. @Yserz and I haven't been working on the NetBeans EditorConfig plugin for years. We both are fulltime TypeScript developers now and work most...
See https://github.com/welovecoding/editorconfig-netbeans/issues/21
`"\uFEFF"` will be `FF FE` which indicates `UTF-16LE BOM`. Another option would be: ``` java ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(string.length() * 2 + 2); byteArrayOutputStream.write(new byte[]{(byte)0xFF,(byte)0xFE}); byteArrayOutputStream.write(string.getBytes("UTF-16LE")); return byteArrayOutputStream.toByteArray(); ```
**Helpful snippets** ``` java DataEditorSupport des = dataObject.getLookup().lookup(DataEditorSupport.class); -> saveFromKitToStream( StyledDocument myDoc, OutputStream os ) ``` ``` java public static EditorKit getEditorKit(String mimePath) { Lookup lookup = MimeLookup.getLookup(MimePath.parse(mimePath)); EditorKit kit...
Approach to set charset for **EditorKit** reader: "Another way the character set can be specified is in the document itself. This requires reading the document prior to determining the character...
BOMs in bytes: http://stackoverflow.com/a/1888284/451634
EOLs can be detected in Swing with: `textComponent.getDocument().getProperty( DefaultEditorKit.EndOfLineStringProperty );`
Interesting: http://commons.apache.org/proper/commons-net/jacoco/org.apache.commons.net.io/CRLFLineReader.java.html