Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Adding simple code formatting to a SourceViewer?
Adding simple code formatting to a SourceViewer? [message #587217] Tue, 16 December 2008 17:50
Bret Schuhmacher is currently offline Bret SchuhmacherFriend
Messages: 26
Registered: July 2009
Junior Member
What's the quickest/simplest way to add rudimentary JavaScript formatting
to a subclass of a SourceViewer? I'm confused about whether I need a
ContentFormatter, a ContentFormaterStrategy, whether I should use a
multi-pass formatter, etc.

Is there a simple, straightforward set of things I can add to a
SourceViewer that will do minimal formatting, like indenting, for
JavaScript?

I'd like to use the JSDT editor, but I don't have that luxury (I'm
retrofitting some old code and don't have all the original source).

Thanks!

Bret
Previous Topic:Adding simple code formatting to a SourceViewer?
Next Topic:Build Feature which includes pre-built feature w/OS-specific plugins
Goto Forum:
  


Current Time: Fri Jul 30 19:56:50 GMT 2021

Powered by FUDForum. Page generated in 0.01335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top