[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: syntax highligthing

T.Utku wrote:
Hi..
We are dealing with implementing *.asm files syntax highlighting in eclipse plugin.. Could you give me an advice.. What to read, where to look..

I'd start with: http://wiki.eclipse.org/index.php/The_Official_Eclipse_FAQs#Implementing_Support_for_Your_Own_Language


There's an entry for writing an editor for your own language.

Moreover, How can I reach the default text editor of plugins. I am using actionSet. When I want to manipulate the text in text editor, what should I do?

If you create an action using org.eclipse.ui.editorActions it will be handed the active editor. If you use a command and a handler, you can get the active editor from the ExecutionEvent application context. If you are in an actionSet IWorkbenchWindowActionDelegate, you can get the active editor from window.getActivePage().getActiveEditor()


PW