|
START NOW WITH MPLAB® EDITOR
MPLAB IDE Programmer’s Text Editor
The MPLAB Editor is an integrated part of the MPLAB IDE Integrated Development Environment. The editor is always available when MPLAB IDE is running.
The MPLAB IDE and MPLAB Editor are designed to provide developers with an easy and quick method to write, edit and debug source code for firmware for Microchip Technology’s PIC® microcontroller (MCU) and dsPIC® digital signal controller (DSC) product families.
The editor functions in a File window of MPLAB IDE. Menu items on File and Edit menus and the right-mouse button are available for editor control.
The MPLAB Editor provides an easy-to-use source code editor.

MPLAB Editor Window
CONFIGURING THE EDITOR
The editor can be customized to show/suppress line numbers, to enable color printing, control word wrap, and to enable mouseover debugging. Fonts, font sizes, and general text window properties can be customized.
The editor displays
• assembly code for each type of PIC and dsPIC MCU,
• C source code,
• BASIC source code, as well as
• other types of text files used within MPLAB IDE.
Color coding is customizable, and depends upon the file type assigned to the text file. Assembly, C, and BASIC keywords are recognized and highlighted to enable easy visual inspection, and to quickly point out typographic errors.
WORKING WITH TEXT
As a programmer’s text editor, the MPLAB editor provides comprehensive features for writing, formatting and working with source code. The following editor features are included:
Most controls are available from the right mouse menu:

Right Mouse Button Controls
WORKING WITH DEBUG FEATURES
When a debugger is selected in MPLAB IDE, several code debugging features are available in the editor window.
• Breakpoints – Breakpoints can be set and cleared directly in source code.
• Debugging functions – Mouseover features allow variables to be monitored in the source text, and allows variables to be dragged to watch windows for continuous monitoring. Run to cursor, set PC to cursor, and single step are all controlled from the editor window.
• Filter Trace – The simulator and emulator trace analyzer can be enabled to trace sections of selected code.
|