Menu

New Language hrc

Sid
2010-03-05
2013-04-01
  • Sid

    Sid - 2010-03-05

    Using eclipse colorer on linux 0.8.0. Tried to include hrc for my own file extension cant get it work, been trying for hours please help.

     
  • Igor Russkih

    Igor Russkih - 2010-03-06

    Hi!

    Sorry, but need more details on how you tried this.

    Normally, you just have to create your HRC type, then add its declaration to the proto.hrc file..

     
  • Sid

    Sid - 2010-03-07

    Hello lomecb, thanks for your reply.

    I tried to add the prototype declaration in the proto.hrc as the following :

      <prototype name="mylang" group="other" description="My own lang">
        <location link="mylang.hrc"/>
        <filename>/\.mylang$/i</filename>
      </prototype>
    

    Copy java .hrc and rename to mylang.hrc change to type in mylang.hrc to be mylang . mylang.hrc is located next to common.jar .
    Added file association in eclipse .mylang to use colorer editor.

    Tried to put mylang.hrc in common.jar and change link to point to jar still not working.
    Tried to move mylang.hrc around since not really sure where its meant to be , still no good.
    Tried instructions at http://colorer.sourceforge.net/other/Color5Eclipse_Newlanguagedoc.html , seems old folder structure different now.

    Tried to modify the current protype definition for java, and add myhrc as file extension, this one works that is all mylang file extension are treated as java source, but still how can i create my own lang, own hrc ?? Thank you

     
  • Igor Russkih

    Igor Russkih - 2010-03-08

    Think you just have a trivial typo or something.

    Just enable logging in catalog.xml, use:

      <hrc-sets log-location="colorer.log">

    and see what it outputs when activating your syntax.

    Hope this'll give you a hint.

    Igor

     
  • Sid

    Sid - 2010-03-11

    thanks logs helped a lot.

     

Log in to post a comment.