Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3



Similar documents
5.6.2 Optional Lab: Restore Points in Windows Vista

How to deploy fonts using Configuration Manager 2012 R2

Most of your tasks in Windows XP will involve working with information

SARANGSoft WinBackup Business v2.5 Client Installation Guide

Lab: Data Backup and Recovery in Windows XP

Outlook 2007: Managing your mailbox

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Creating a Distribution List from an Excel Spreadsheet

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

Lab - Data Backup and Recovery in Windows XP

How to Configure Windows 8.1 to run ereports on IE11

Entire Connection Version 4.2.1

Importing Contacts to Outlook

Introduction to the use of the environment of Microsoft Visual Studio 2008

Working with Windows Handout

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

You must have at least Editor access to your own mail database to run archiving.

Laptop Backup - User Guide (Windows)

How To Encrypt A Traveltrax Report On Gpg On A Pc Or Mac Or Mac (For A Free Download) On A Thumbdrive Or Ipad Or Ipa (For Free) On Pc Or Ipo (For An Ipo)

Installing Ruby on Windows XP

Working With Your FTP Site

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

Pdf - print version. Lab Objectives: When you are finished with this lab you should be able to:

Installing (1.8.7) 9/2/ Installing jgrasp

Call Recorder Quick CD Access System

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

Installing Basic PAYE Tools onto a networked computer

USING SSL/TLS WITH TERMINAL EMULATION

ATBONLINE BUSINESS. Customer User Guide Exporting Account Information to.ofx Format Software (Simply Accounting).

Basics. a. Click the arrow to the right of the Options button, and then click Bcc.

Introduction to MS WINDOWS XP

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

DP-313 Wireless Print Server

Installation of the KX-P8420 Print Driver And Support Files (Windows). Introduction:

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

Create, Link, or Edit a GPO with Active Directory Users and Computers

Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.

Creating trouble-free numbering in Microsoft Word

Step-by-step installation guide for monitoring untrusted servers using Operations Manager ( Part 3 of 3)

5.4.8 Optional Lab: Managing System Files with Built-in Utilities in Windows 7

Install the Production Treasury Root Certificate (Vista / Win 7)

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

DeviceLock Management via Group Policy

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

2. Using Notepad, create a file called c:\demote.txt containing the following information:

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

MyNetFone Virtual Fax. Virtual Fax Installation

Configure Single Sign on Between Domino and WPS

Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

Appendix K Introduction to Microsoft Visual C++ 6.0

Set up Outlook for your new student e mail with IMAP/POP3 settings

Practice Fusion API Client Installation Guide for Windows

Managing Mailbox Space and Personal Folders

OUTLOOK ANYWHERE CONNECTION GUIDE FOR USERS OF OUTLOOK 2010

Word 2010: Mail Merge to with Attachments

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier.

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

Managing Files. On a PC, after you find your file, right click it and selet Rename from the pop-up menu.

Bulk Downloader. Call Recording: Bulk Downloader

Installing a printer in Windows 95.

How to Install and use Windows XP Mode and Windows Virtual PC in Windows 7 for older 32 bit only Applications

Appendix M: Introduction to Microsoft Visual C Express Edition

ENABLE LOGON/LOGOFF AUDITING

educ Office Remove & create new Outlook profile

Create Mailing Labels from an Electronic File

STATISTICA VERSION 11 CONCURRENT NETWORK LICENSE WITH BORROWING INSTALLATION INSTRUCTIONS

DeviceLock Management via Group Policy

5.6.3 Lab: Registry Backup and Recovery in Windows XP

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES

BSDI Advanced Fitness & Wellness Software

Reduced Quality Sample

WEB INTERFACE FOR CDS/ISIS. GENISISweb VERSION Deepali Talagala, General Secretary, Sri Lanka Library Association Colombo

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

Installation Instruction STATISTICA Enterprise Small Business

Test Note Phone Manager Deployment Windows Group Policy Sever 2003 and XP SPII Clients

5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.

Archiving Your Mail in Outlook 2007

Managing documents, files and folders

Enhancing the SAS Enhanced Editor with Toolbar Customizations Lynn Mullins, PPD, Cincinnati, Ohio

Creating tables of contents and figures in Word 2013

AUSTRALIAN CUSTOMS AND BORDER PROTECTION SERVICE TYPE 3 CERTIFICATE 2014 INSTALLATION GUIDE

Printer Driver Installation Guide

User Manual V1.3. NCB File /alahlincb

Outlook Express. a ZOOMERS guide

File Manager Pro User Guide. Version 3.0

Installing LearningBay Enterprise Part 2

BioWin Network Installation

TBS Help Index / On Board Software User Manual

SELF SERVICE RESET PASSWORD MANAGEMENT CREATING CUSTOM REPORTS GUIDE

Android Development Setup [Revision Date: 02/16/11]

Windows VPN and Epic Installation Instructions

Archiving in Microsoft Outlook. This document looks at archiving and saving space in the Microsoft Outlook program. INFORMATION SYSTEMS SERVICES

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

Network Printing In Windows 95/98/ME

Transcription:

Notepad++ The COMPSCI 101 Text Editor for Windows The text editor that we will be using in the Computer Science labs for creating our Python programs is called Notepad++ and http://notepad-plus-plus.org is freely available for the Windows operating system. If you plan to do work outside of the labs, perhaps at home, you may like to use the same software that we have available in the labs. This document describes how to install and configure Notepad++ using the same settings available in the labs. What is a text editor? A text editor is a program that enables you to write plain text files (a text file is a file that consists of lines of text comprised mainly of the characters that you can type on a keyboard). A common extension for text files is.txt, although the Python source files that we are creating in this course are also examples of text files and use the extension.py. There are many text editors that are freely available for you to use. For example, Windows provides a very simple text editor called Notepad (that you can find under the Accessories menu). However, this is not a very good editor for writing source code because it doesn t support useful features such as syntax- colouring, auto- indentation and brace highlighting. Notepad++ is a freely available text editor for Windows, and is the editor we will be using in the labs to write our Java source code. Install Python 3 Before installing and configuring Notepad++ make sure that you have installed Python 3. You can download and install the most recent version from: https://www.python.org/downloads/windows/ Make sure you are downloading Python 3. Page 1

Installing Notepad++ Start by browsing to the main NotePad++ website: http://notepad- plus- plus.org From here, you can select the Download menu, and download the Notepad++ installer: Double- click the installer (the.exe file which you downloaded) and simply follow the prompts, accepting the default options. To check that you have installed Notepad++ correctly, run the application and you should see an editor window like the following appear: Your console window may be along the bottom of the window. Page 2

Configuring Notepad++ In the labs, certain commands and short- cut keys have been defined to make it easier for you to compile and run your Python applications. This section will describe how to configure Notepad++ so that the same commands and short- cut keys are available to you. Display Font To set the display font, go to: Settings > Style Configurator... Set Font to Courier New, and Font size to 12 for Language: Global Styles and Style: Global override When you have finished, press 'Save and Close'. NppExec Plugin Open the Plugins menu. You will need an option called NppExec in this menu and it may not be present by default (as in the example screenshot below): There is no NppExec appearing in this menu. If the NppExec plugin is not present, you can enable it by going to Plugin Manager and selecting Show Plugin Manager (If you still can't see the NppExec plugin look at the last two pages of this document): Page 3

From here, find the NppExec plugin, and select it then click Install: You will be prompted to restart Notepad++. Click Yes, and wait for Notepad++ to restart. You should now see NppExec appearing on the Plugins menu: Configure the NppExec Plugin: Go to Plugins > NppExec and apply the followings 1. Enable "Show Console Dialog" 2. Enable "Save all files on execute" 3. Enable "Follow $(CURRENT_DIRECTORY)" as shown in the screenshot above. Page 4

Short- cut keys Define the function and the corresponding short- cut keys for running Python programs: 1. Go to Plugins > NppExec > Execute... 2. Choose "Cancel" if a Save File dialog box appears probably will not happen 3. Enter the following command in the window: as shown below: Then choose Save... and, using the name "Run Python", save this script (see below): Press OK. Page 5

5. Define the scripts for the short- cut keys: Go to NppExec "Advance Options", and enable "Place to the Macros submenu". Now select "Run Python" from under the "Associated script:" menu, and click the "Add/Modify" button. "Add/Modify" button: Page 6

You should see the "Run Python" script added in the "Menu items" box as shown below: Select OK you will be shown a dialog box indicating the Notepad++ needs to restart. Select OK, close Notepad++, then open it again. Page 7

6. Finally, set up the short- cut key mappings: Go to Setting > Shortcut mapper: and select the "Plugin commands" tab. Scroll down to find the scripts you defined: Note that you may first have to remove Ctrl 1 shortcut from one of the commands in the Main menu list of commands (the list on the left most menu). Page 8

Double- click the "Run Python" script name to bring up the "Shortcut" box. In this box, you can enter the desired short cut for the " Run Python" script. Select CTRL+1 as shown below: and then click the "OK" button and close the window. Testing the configuration of Notepad++ To test that the Notepad++ has been configured correctly, enter the following source code into the editor: print("hello world!") and save the file in some location on your disk (remember the file should have a.py extension): You should now be able to use the short- cut keys (or you can select them from the "Macro" menu) to run your program: Page 9

You should see the console pane appear with the output from the Python interpreter: (If your program doesn't run correctly see the next page of this document). Page 10

Sometimes things don't work as planned. Two things which may not work when you install Notepad++ are: 1. Short- cut keys (page 5) Please note that the script for running a Python program is: cd "$(CURRENT_DIRECTORY)" C:\Python34\Python "$(FILE_NAME)" "C:\Python34\Python" is the path to the place in your system where Python.exe exists. If your program doesn't run then check that this path is correct. How to check (see below). Go to the folder in the C drive where your folder containing the Python interpreter is stored: The folder in this screenshot is named Python33 but yours may be named Python34 Open this folder and you will find your python executable: (Note that sometimes the executable starts with lower case 'p') If the path to your python.exe is different to the one shown in these notes, then change the script accordingly: cd "$(CURRENT_DIRECTORY)" C:WHATEVER_YOUR_PATH_IS\Python "$(FILE_NAME)" Page 11

2. NppExec Plugin (page 3) This does not appear in the list of available plugins. Go to your C drive, Program Files and find the Notepad++ folder: Look inside and find the plugins folder: Look inside and find the NppExec folder. If this folder isn't there, download a copy from the Internet, and continue with the instructions on page 3: Page 12