* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* agnivn joined #java
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* agnivn joined #java
* meyou joined #java
* B_fd joined #java
Chronoscheeser: He writes interesting blog articles
ChronosI don't always agree with him, but they're almost always interesting
cheeseryeah
* digicyc joined #java
* hwpplayer1 joined #java
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* stfstfm joined #java
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* raj joined #java
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* nevet joined #java
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
* Afterglow joined #java
BombeHmm, there doesn’t seem to be a maintained syntax highlighting library for Java. That makes me sad.
BombeNot sure I understand. I have a String, I want some representation that allows e.g. colouring. Could be an AST, could be Markdown, could be HTML.
BombeThat would be an acceptable outcome, yes.
BombeMaybe my search engine skills have turned to shit, but the only thing I can find is commonmark, which doesn’t do syntax highlighting, and blogposts that list a number of syntax highlighting projects which support ~5 languagues and are unmaintained.
BombeThe fuck, do I have to explain the difference between Java and JavaScript to you? :D
BombeString -> (something)? -> HTML is pretty much exactly what I want to do.
BombeClient-side is no good, though, I need it in Java.
BombeWell, on the JVM, to be more precise, don’t care what it’s in exactly, unless it requires gigantic runtimes or is Scala. :)
BombeI’m getting a String, I want to apply syntax highlighting, and I want to store the resulting HTML.
ernimrilBombe, so what parts do you want help with? The tokenizer? the parser? the highlighter? the output handling?
nevetGitHub - bobbylight/RSyntaxTextArea: A syntax highlighting, code folding text editor for Java Swing applications.
javaboternimril's title: "GitHub - bobbylight/RSyntaxTextArea: A syntax highlighting, code folding text editor for Java Swing applications. · GitHub"
* CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
nevetGitHub - codelibs/jhighlight: JHighlight is an embeddable pure Java syntax highlighting library.
javabotcheeser's title: "GitHub - codelibs/jhighlight: JHighlight is an embeddable pure Java syntax highlighting library. · GitHub"
* kathadris joined #java
* polarian joined #java
* m joined #java
* kcomhnall joined #java
* kcomhnal1 joined #java
Bombeernimri, what I would love is a library to take care of all of that for me. :D
dreamrealconsidering the specificity of the requirement, that'd be a high expectation :D
* sponkz joined #java
BombeI’m not sure what is so incredibly hard to understand: I have a String, and I want a String.
BombeThe final result will be stored; at some point in the future it will be sanitized and displayed in a browser, but that’s completely irrelevant because out of scope.
dreamrealso you want a string, that presumably represents valid java source, to be highlighted in... html using... styles? no css?
dreamrealno, like, external css
dreamrealwhy not, in that case, start with a keyword search/replace: s/package/<span style="color:red">package</span>/
dreamrealotherwise you're looking at generating an AST and using that to spit out bits based on token purpose
dreamrealwhich is not particularly complicated, I suppose
BombeYes, I know how (in theory) to do that manually, and if everything else is shit, I will probably do that.
BombeStill, I would love to not do that myself. :)