Syntax highlighting textview displaying source code not putting a new line
问题 I had to display some source code in my text view along with syntax highlighting So i used java prettify jar and imported it into my project and craeted a prettify highlighter class The highlighting works fine but there is no new line inserted between the code Like this My code strings.xml <?xml version="1.0" encoding="utf-8"?> <string name="app_name">syntaxtest</string> <string name="javacode"> public class MainActivity extends Activity { @Override protected void onCreate(Bundle