Files with no extension

Help
2012-01-03
2013-06-12
  • Robbie Byrne

    Robbie Byrne - 2012-01-03

    I working with Tcl scripts that do not have any extensions. Is it possible for the user to specify a default language to scan?

     
  • UFO

    UFO - 2012-01-03

    Sorry no, that's not doable at the moment.
    Unless your scripts do have "specific" (repeating) filenames -
    then you could register them as if they were extensions.
    But if your filenames are random, then I can't help.

     
  • Robbie Byrne

    Robbie Byrne - 2012-01-04

    Thanks for the reply. The files are actually prefixed with the server name. Does the matching part need to be the suffix or can you uses a regular expression to match against the prefix?

     
  • UFO

    UFO - 2012-01-04

    Unfortunately there's no regex handling for the filename/-extension<>language mapping.
    So I can't help you at the moment. What I meant is something "SCons"-files. They also don't
    have extensions, but they are always called "SContruct" or "SConscript". So I can simply
    add  "SContruct." and "SConscript." to the extension list for python, as they are python
    files (as you can see for yourself, if you look up the language settings for python in the sourcecookifier
    settings dialog).

     
  • Robbie Byrne

    Robbie Byrne - 2012-01-05

    That works brilliantly. Thanks. Only takes a few seconds too. Would never have thought of the dot at the end.

    Cheers
    Robbie

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks