Bugs item #1525361, was opened at 2006-07-19 18:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1525361&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: examples
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Julian Vassev (jvassev)
Assigned to: Nobody/Anonymous (nobody)
Summary: more eye-candy source-view

Initial Comment:
why don't you include java-source code formatting in
the wicket.examples.source.SourcesPage.SourceModel
class. Using the free GPL-ed library java2html
(http://www.java2html.de/) it is as simple as that:


public Object
wicket.examples.source.SourcesPage.SourceModel.getObject(Component
component)
{
.........
  if (name.endsWith("java"))
  {
      component.setEscapeModelStrings(false);
      return Java2Html.convertToHtml(sb.toString());
  }
  else
  {
      component.setEscapeModelStrings(true);
      return sb.toString();
  }
}
catch (IOException e)
{
..............

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1525361&group_id=119783

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to