SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => SlickEdit® Core for Eclipse™ => Topic started by: djinma on October 24, 2009, 03:34:18 pm

Title: New Language Being Ignored
Post by: djinma on October 24, 2009, 03:34:18 pm
In slickedit for eclipse 3.4, i have added a new language...  added a user.vlx file with keyword specs etc,  created a new language and file extension in slickedit preferences.  The preferences for the language i created show the values i would expect from the vlx file..   When i open a file with the new extension i created, it doesnt seem to be recognized, and hence syntax isnt coloured as i would expect - appears to be treated as entirely plain text.  I am guessing i missed a configuration step.  Any suggestions ?
Title: Re: New Language Being Ignored
Post by: djinma on October 24, 2009, 04:06:22 pm
One final detail, i forgot to mention that i added lexer module, which i associated with the language when i was adding the language.  Did not receive any complaints that it didnt like the module.
Title: Re: New Language Being Ignored
Post by: Ryan on October 24, 2009, 09:29:57 pm
To test, I just added a new language through the SlickEdit Language Manager (SlickEdit Preferences > Languages > Language Manager), and added a new lexer and language mode.  Then I defined some keywords in the Color Coding dialog for the language, and it all seemed to work.

The first thing to check would be to make sure that you've told Eclipse to open these types of files with the SlickEdit editor.  Have you done this?  If not, go to Window > Preferences > General > Editors > File Associations and add the new extension.  Then highlight the newly added extension in the list and down by the 'Associated Editors' pane click the Add... button.  Use this dialog to set SlickEdit as the default editor for these files.

If that wasn't your problem, could you post the .vlx file here along with the lexer module so I can take a look?  I'm not sure what the problem could be off the top of my should be working.

Also, what version of the plug-in are you using?  I'm assuming it's Core 3.4.0 because you said Eclipse 3.4, but I have to check.  What OS are you on?