Eclipse: How to change default markup language for WikiText Editor

914 views Asked by At

I want to have project documentation in wiki format and commit to version control system together with code. I have tried standard Eclipse Mylyn WikiText Editor, which is sufficient for my needs.

Due personal preferences I have chosen Confluence markup language (another five or so are supported), but don't know how to change default markup language for newly opened files, they are opened with Textile markup language, so I have to manually switch to Confluence in popup menu.

When files have .confluence extension it works, but I want to have .wiki extension for my files.

There are some configuration options in Preferences, I have tried adding extension to content type, changing editors for extension, but without success. Eclipse Mylyn documentation says that default markup language can be changed for Mylyn Task Repository, but in my case I use WikiText Editor for files in project, without any task repositories.

2

There are 2 answers

0
mschayna On BEST ANSWER

Finally I stayed at file extension .confluence, it's longer but more descriptive.

Traditionally self-accepting for completeness.

0
David Green On

There is currently no way to set the default markup language with Mylyn WikiText other than to use a file extension that corresponds to the markup language name (eg: .textile, .confluence, .mediawiki, etc.). If you open a file with an unrecognized extension, the markup language can be set using the context menu. In this case the setting should stick (you shouldn't need to set it again for the same file).

Feel free to file a bug for an enhancement if the current behaviour could be improved.