Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Indentation around formatting
Indentation around formatting [message #1034603] Fri, 05 April 2013 16:44
Ed Willink is currently offline Ed WillinkFriend
Messages: 6580
Registered: July 2009
Senior Member

Has a solution been found for the indentation around problem?

e.g. given a rule

Rule: Heading Body;

How can I configure formatting to indent the body as in


Current the options for setIndentation are basically
set-indentation-between, but there is no trailing terminal for the
between. Using a dummy WS? or getRule() successfully indents the body,
but also indents everything that follows so a succession of Rules slant
their way across the page.

A set-indentation-around capability would make it easy.


Ed Willink
Previous Topic:Getting all instances of particular grammar class
Next Topic:How to imply a value for a field via the grammar
Goto Forum:

Current Time: Mon Feb 17 00:13:20 GMT 2020

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

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

Back to the top