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

Similar documents
Working with. in Notepad++

Writing and Running Programs

Easy Windows Working with Disks, Folders, - and Files

PYOTE installation (Windows) 20 October 2017

Included with the system is a high quality speech synthesizer, which is installed automatically during the SymWord setup procedure.

3. NetBeans IDE 6.0. Java. Fall 2009 Instructor: Dr. Masoud Yaghini

2 The Stata user interface

Windows Me Navigating

Configuring JCreator to create Javadocs Compilation Shortcut Key

CIS 231 Windows 7 Install Lab #2

CIS 231 Windows 10 Install Lab # 3

Windows 2000 Safe Mode

Dealing with Event Viewer

gedit developer plugins Configuring and extending gedit for development

ECDL Module 6 REFERENCE MANUAL

Software Installation for CS121

Windows Computer A to Z Shortcut Key list with PDF

January 2015 SPIDER 2j Full Install & Update

Changing Button Images in Microsoft Office

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Marthon User Guide. Page 1 Copyright The Marathon developers. All rights reserved.

Placing Text in Columns

The Start menu (overview)

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

AutoCollage 2008 makes it easy to create an AutoCollage from a folder of Images. To create an AutoCollage:

How to Add Word Heading Styles Explanation

Using SQL Developer. Oracle University and Egabi Solutions use only

Information Communications Technology (CE-ICT) 6 th Class

Code::Blocks Student Manual

The QuickCalc BASIC User Interface

How to deploy fonts using Configuration Manager 2012 R2

1) Use either Chrome of Firefox to access the VMware vsphere web Client. FireFox

Checking Out and Building Felix with NetBeans

Web Age Solutions Inc. WA2639 Devops with Jenkins, Terraform and Hashicorp Stack. Classroom Setup Guide. Web Age Solutions Inc. 1

FireFox. CIS 231 Windows 10 Install Lab # 3. 1) Use either Chrome of Firefox to access the VMware vsphere web Client.

The Computer System. Hardware = Physical Computer. Software = Computer Programs. People = End Users & Programmers. people

Using Eclipse for Java. Using Eclipse for Java 1 / 1

Slide 1 CS 170 Java Programming 1 Duration: 00:00:49 Advance mode: Auto

Getting Started with Python and the PyCharm IDE

WA2451 DevOps Fundamentals. Classroom Setup Guide. Web Age Solutions Inc.

The Fundamentals. Document Basics

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

Teacher Activity: page 1/9 Mathematical Expressions in Microsoft Word

UNIVERSITY OF MICHIGAN INFORMATICS Charles Severance. You will need Apple QuickTime installed to view this video.

Use mail merge to create and print letters and other documents

In this lab, you will build and execute a simple message flow. A message flow is like a program but is developed using a visual paradigm.

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

WA2321 Continuous Integration with Apache Maven Jenkins-CI and Nexus. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Create and print labels for a mass mailing

Unit 23 Creating Conditional Content

TTWin 4 Quick Start Guide

PISCES Installation and Getting Started 1

Startfish driver installation is a two step process for Windows operating systems.

Mend for Eclipse quick start guide local analysis

POOSL IDE Installation Manual

RTMS - Software Setup

MadLab JellyBean. version 1.0. Written by James Hutchby Copyright MadLab Ltd All Rights Reserved.

UIMA Tools Guide and Reference

JCreator. Starting JCreator

Getting Started with Tally.Developer 9

Using IDLE for

ITEC102 INFORMATION TECHNOLOGIES

CIS 231 Windows 2012 R2 Server Install Lab #1

Send Automatic Replies when you're away

Hands-on Session. Styles Tool. Bullets & Numbering

Hands-On Lab. Authoring and Running Automated GUI Tests using Microsoft Test Manager 2012 and froglogic Squish. Lab version: 1.0.5

WA2621 DevOps Foundations for Java with Git, Jenkins, and Maven. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Installing & Using CutePDF Writer

Unit Microsoft Word. Microsoft Word is the word processor included in Office. Word is one of the most popular word processors.

Microsoft Excel 2010 Training. Excel 2010 Basics

FreeCommander ~ Configuring Operating Elements

The Python Mini-Degree Development Environment Guide

Version S Cincinnati, Suite 105 Tulsa, OK (918) Fax (918)

Schoolwires Website How to Access and Modify Content of Teacher Pages

10ZiG Technology UNIFIED CONFIGURATION TOOL GUIDE INTRODUCTION STEP 1: INSTALL UCT AND CONNECT TO YOUR DEVICE HARDWARE REQUIREMENTS

FireFox. CIS 231 Windows 2012 R2 Server Install Lab #1

Auto Start Analyzer after AppPool Recycle by IIS

Getting started with the Spyder IDE

Angel International School - Manipay 1 st Term Examination November, 2015

WA1827 Cloud Programming Workshop. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

SL-6397 DECUS GAMING MOUSE

CS 209 Section 52 Lab 1-A: Getting Started with NetBeans Instructor: J.G. Neal Objectives: Lab Instructions: Log in Create folder CS209

Microsoft Excel > Shortcut Keys > Shortcuts

Setting up your Computer

TE100-P1P/TE100-P1U F.A.Q.

Chapter A2: BankLink Books clients

PC and Windows Installation 32 and 64 bit Operating Systems

Just Enough Eclipse What is Eclipse(TM)? Why is it important? What is this tutorial about?

Introduction to Windows

Chapter 2. Editing And Compiling

Getting Started with Tally.Developer 9 Series A Release 3.0

Getting Started (1.8.7) 9/2/2009

UIMA Tools Guide and Reference

Windows NT Server Printer Driver Upgrade Instructions

Guide to fix the problem with Problets

Copyright 2018 MakeUseOf. All Rights Reserved.

Flip-Q. Version 2.4. Overview

MEDIA COMPUTATION DRJAVA. Lecture 11.3 November 7, 2008

Using the Inbox to Manage Messages

Additional Network Workstation Windows XP Installation Guide

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 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. http://notepad-plus-plus.org 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. Installing Notepad++ Start by browsing to the main NotePad++ website: Notepad++ configuration instructions Page 1

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 (it is shown on the right hand side in this screenshot). Notepad++ configuration instructions 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): Notepad++ configuration instructions 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. Short- cut keys Define the function and the corresponding short- cut keys for running Python programs: Notepad++ configuration instructions Page 4

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. Notepad++ configuration instructions 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: Notepad++ configuration instructions 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. Notepad++ configuration instructions 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). Notepad++ configuration instructions 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: Notepad++ configuration instructions 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). Notepad++ configuration instructions 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 "$(FULL_CURRENT_PATH)" "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: Open this folder and you will find your python executable: The folder (directory) in this screenshot is named Python33 but yours may be named Python34 or some other Python 3 version. (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 "$(FULL_CURRENT_PATH)" Notepad++ configuration instructions 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: Notepad++ configuration instructions Page 12