NetBeans Javascript?

后端 未结 8 1179
暗喜
暗喜 2021-02-13 10:49

I just downloaded Netbeans because I read another question saying it\'s a good IDE to develop Javascript with. I tried making a new project, but there is no option to set it to

8条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 11:41

    [Note: this is for Netbeans 7.3+]

    In NetBeans, a PHP project is a pretty general web application that can contain JavaScript, HTML, PHP, CSS, XML, and all the different web & server technologies (except Java) the Netbeans supports. So you can use a PHP aapplication as a general web project. This option is better than an HTML5 project because it includes server-side processing in the form of PHP files. Also, if you are developing in JavaScript, you will probably be using Ajax at some point, and PHP is a good language for the server side of Ajax, as well as server-side processing in general.

    Instructions

    Create a PHP Project.

    1. Go to the File menu.
    2. Click New Project.
    3. Select PHP in Categories.
    4. Select PHP Application.
    5. Click Next
    6. Fill out the details.(Name, location, server, etc. This part is pretty self explanatory.) (Note: if you need help, click the Help button in the lower right corner)

    If you do not have the PHPOption in the New Project Dialog, then you did not install the PHP NetBeans plugin.

    Installing the PHP Plugin:

    1. Go to the Tools menu.
    2. Click on the Plugins option. (It is second from the bottom)
    3. Click on the Available Plugins Tab.
    4. Search PHP.
    5. Check the checkbox next to the PHP Plugin..
    6. Click Install. (Lower-left corner)
    7. Click Next on the dialog that comes up.
    8. Click the I accept checkbox.
    9. Click the Install button.
    10. If a little window pops up in the lower right corner that says restart IDE, Exit Netbeans, and then Open it again. It may take longer than usual because it is installing the new Features.

    To make JavaScript Files:

    1. Go to the File menu.
    2. Click New File.
    3. [Select the relevant category]

      A. (Netbeans 8.x) click HTML5 in Category.
      B. (Netbeans 7.x) click Other in Category.

    4. Select JavaScript File.
    5. Fill out the details. (Name, location,etc.)

提交回复
热议问题