title: Eclipse: Enable Java error markers in standalone SourceViewer widget
body: <p>So I am working with Eclipse, and am trying to enable Java error highlighting inside of a standalone SourceViewer. I have done quite a bit of searching the web, but nothing seems to come up. I have looked into dealing with Annotations, Markers, etc... Everything that comes up seems to be for implementing custom methods.</p>
  
  <p><a href="http://wiki.eclipse.org/Platform_Text" rel="nofollow">http://wiki.eclipse.org/Platform_Text</a></p>
  
  <p>has helped a bit, but seems to be not exactly what I want.</p>
  
  <p>The SourceViewer is going to be a basic Java editor, so it can be assumed that everything will be java code. I would just like the red squiggly lines to appear under syntax errors, maybe also have the red boxes on a ruler on the side. There should be a default easy way to enable this, but I cannot find it.</p>
  
  <p>Thanks in advance!</p>