beginners-step-by-step-coding-course-learn-computer-programming-the-easy-way

Page 208

Code editors One of the most important tools for programmers, code editors are specifically designed for editing the source code of computer programs. They can be stand-alone applications or part of any IDE (see p.23) or web browser. A number of code editors are available online, all customized to fit specific work situations or programming languages. Code editor tools

that simplify and accelerate the process of editing. These elements automate common repetitive tasks Simple text editors, such as Notepad, can be used to write code, but they cannot enhance or ease the process and assist the programmer to write better software by identifying problems and debugging code. Some of code editing. The code editors available online have of the most useful code editor tools are listed here. specialized functionalities, or certain built-in features, Syntax highlighting Displays different parts of the code in different colours, making the code easier to read. For example, HTML tags are highlighted in one colour and comments are highlighted in another colour.

Multiview Allows the programmer to view multiple files side by side. Some code editors even allow two instances of the same file to be viewed alongside each other.

Printing Enables the programmer to print a hard copy of the code. The output can then be shared and used as a tool to facilitate communication and problem solving.

Preview window Allows the programmer to see a quick representation of how the HTML code will render without having to start a web server to execute the code.

Types of code editors There are two types of code editors most commonly used by programmers – lightweight editors and IDEs. The choice of editor to be used depends on the programming language and the type of program to be edited.

Lightweight editors These editors are used to open and edit a file instantly. They have basic features and are fast and simple to use. Lightweight editors can only be used when working on a single file. This table lists some of the most commonly used lightweight editors.

LIGHTWEIGHT EDITORS Code editors

Features

Brackets

An open source code editor that focuses on web development languages, such as HTML, CSS, and JavaScript. It has lots of useful extensions and plugins. (http://brackets.io/)

Atom

A hackable open source code editor that supports many languages and is designed primarily for web development. Atom is well integrated with Git (a free system for tracking changes in source code) and has lots of custom plugins. (https://atom.io/)

Sublime Text

A small but powerful code editor that works with several languages and has many tools and shortcuts to aid coding. (https://www.sublimetext.com/)

Visual Studio Code

Smaller and simpler than the Community edition (see right), Code is a very popular editor that can work with many languages and has advanced features. (https://visualstudio.microsoft.com/)


Turn static files into dynamic content formats.

Create a flipbook

Articles inside

Other programming languages

5min
pages 344-347

PROJECT: Responsive website

52min
pages 304-343

ACKNOWLEDGMENTS

1min
page 360

INDEX

26min
pages 352-359

GLOSSARY

16min
pages 348-351

Graphic user interfaces

2min
pages 286-287

Libraries and frameworks

2min
pages 284-285

Object-oriented JavaScript

2min
pages 282-283

JavaScript debugging

3min
pages 280-281

Functions in JavaScript

2min
pages 278-279

Input and output

3min
pages 272-273

Loops in JavaScript

5min
pages 274-277

Logic and branching

2min
pages 270-271

Variables and data types

6min
pages 266-269

PROJECT: Styling the web

29min
pages 242-263

Code editors

4min
pages 208-209

Build a better website

4min
pages 214-215

Responsive layouts

2min
pages 240-241

HTML forms and hyperlinks

3min
pages 212-213

How the Web works

3min
pages 206-207

Exploring basic HTML

4min
pages 210-211

Pygame Zero

2min
pages 176-177

PROJECT: Budget manager

20min
pages 158-175

Logic operators and branching

3min
pages 104-105

Objects and classes

2min
pages 156-157

PROJECT: Team allocator

14min
pages 118-129

Libraries

3min
pages 116-117

What is Python?

3min
pages 94-95

Loops in Python

5min
pages 108-111

Installing Python

3min
pages 96-97

Using functions

3min
pages 50-51

Sending messages

3min
pages 48-49

Input

3min
pages 46-47

Logic and decisions

3min
pages 44-45

Managing program flow

4min
pages 40-41

Manipulating data

3min
pages 42-43

Output using movement

4min
pages 36-37

Output using looks and sounds

4min
pages 38-39

Coloured blocks and scripts

3min
pages 34-35

FOREWORD

2min
pages 10-11

What is programming?

3min
pages 16-17

Programming languages

6min
pages 22-27

What is Scratch?

2min
pages 28-29

About this book

3min
pages 12-15

Working as a software developer

2min
pages 20-21

Coding in the real world

1min
pages 18-19
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.