NetBeans No Extension MIME Resolver Plugin

Return a proper mime type from a shebang line or modeline of a file if the file extension is empty. (e.g. myscript)

License

License

Categories

Categories

NetBeans Development Tools IDE Net
GroupId

GroupId

com.junichi11.netbeans.modules
ArtifactId

ArtifactId

netbeans-noext-mime-resolver
Last Version

Last Version

0.12.1
Release Date

Release Date

Type

Type

nbm
Description

Description

NetBeans No Extension MIME Resolver Plugin
Return a proper mime type from a shebang line or modeline of a file if the file extension is empty. (e.g. myscript)
Project URL

Project URL

https://github.com/junichi11/
Source Code Management

Source Code Management

https://github.com/junichi11/netbeans-noext-mime-resolver

Download netbeans-noext-mime-resolver

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

NetBeans No Extension MIME Resolver Plugin

Return a proper mime type from a shebang line or modeline of a file if the file extension is empty. (e.g. myscript)

Example

Shebang line

#!/usr/bin/env bash
#!/bin/bash

Modeline

// vi:set ft=cpp:
// vim:set filetype=cpp:
/* vi:set filetype=cpp: */

Supported type

  • bash (text/sh)
  • c (text/x-c)
  • cpp (text/x-c++)
  • groovy (text/x-groovy)
  • javascript (text/javascript)
  • js (text/javascript)
  • node (text/javascript)
  • perl (text/x-perl)
  • php (text/x-php5)
  • python (text/x-python)
  • ruby (text/x-ruby)
  • sh (text/sh)

If you have some requests, please submit them to the github repository as new issues.

Contributions

  • If you come across typos, please feel free to create a PR
  • Other than that, please ask before creating Pull Requests
  • Please create a PR against not the master but the latest version(e.g. nb120) branch

Note

This plugin doesn't provide syntax highlighting, code completion, etc. Requires plugins for specified mime-types. e.g. C/C++ plugin(sh, bash)

Donation

License

The MIT license

Copyright (c) 2014 junichi11

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Versions

Version
0.12.1
0.12.0