Author Topic: New Language Being Ignored  (Read 5822 times)

djinma

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
New Language Being Ignored
« 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 ?

djinma

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: New Language Being Ignored
« Reply #1 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.

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: New Language Being Ignored
« Reply #2 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 head...it 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?

Thanks,

Ryan
« Last Edit: October 24, 2009, 09:31:43 PM by Ryan »