Sublime Forum

Color text in pdf file just like in sublime text 2

#1

I am creating a program to generate a giant PDF with the source code of any project(it can pick .java files code, .html, .xml…). I am using IText livbrary to do it. But now i have to paint the pdf with some colors. I want me to do something like sublime text 2, where a function name is green, a string is yellow, variables are white… and not just for java classes! I want it to xml files, html…

Is there any plugin that can help me paint my PDF with colors just like the Sublime Text 2 does with any file?
Is the sublime text 2 using a java plugin to color these lines or not?

0 Likes