FormattingModel etc.

hi!
i'm writing a custom language plugin and gone pretty far already but now i am facing a real big trouble that makes me unhappy - formatting.

my formatting implementation is based on one from the javascript language plugin.


the strange behavior is as follows:
i have a language construct "^methodname{some parameter}" and i want it to be formatted like
"^methodname{
some parameter
}"

I have an element type for "some parameter" and for the corresponding block i return
null spacing,
normal indent,
null wrap

and nothing happens.

If i return some spacing then i have
"^methodname{

some parameter
}"

If i return some wrap i just have
"^methodname{
some parameter
}"

But how to get indent working?

thanks in advance

Please sign in to leave a comment.