syntax highlighting w/o filename extension

pedorro
2007-01-27
2013-03-15
  • pedorro

    pedorro - 2007-01-27

    Is there a way to get syntax highlighting in files that don't have a filename extension?  It's not uncommon for Python files to have no extension but rely on the '#!/usr/bin/python' to identify the type.  Thanks.

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2007-01-28

      Not currently... (Eclipse does not support it) you can try voting for it at eclipse.org...

      The bug for that is: https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=46297

      Cheers,

      Fabio

       
      • Christopher Hunt

        I'm a newbie to Eclipse so sorry if this is a dumb one, but could one get around this by creating a main.py and then copying main.py to "name_of_cli_tool" as part of the build process? If so then how? (I've been trying to find out how to do this for hours!).

        Cheers,
        -C

         
        • Fabio Zadrozny

          Fabio Zadrozny - 2007-02-19

          You can create a 'builder': right-click your project, choose 'builders', then 'new' > 'program'. Point the location to an executable that does what you want -- and in 'build options', you should specify the 'relevant resources' so that it only makes this build when that specific file is changed.

          Cheers,

          Fabio

           
    • Christopher Hunt

      Thanks for that! Very helpful.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks