Skip to content

Getting Started

Manindra29 edited this page Oct 23, 2012 · 10 revisions

XQMode is a contributed Mode for Processing that reports syntax and compilation errors in code as you type, on the fly. Features include underlining error lines, tabular list of errors, click to scroll to error line and eclipse like error bar displaying positions of all errors in the tab.
## Installation
  1. You need Processing 2.0b5 or later (http://www.processing.org/download/)
  2. Download the latest version of XQMode from here.
  3. If not already present, create a folder named "modes" inside your Sketchbook folder. (The location of the sketchbook folder is shown in Processing's Preferences dialog)
  4. Extract the contents of XQMode .zip into the modes folder.
  5. Restart Processing.

Usage

  • Click on the mode menu in the top right corner. Click on XQMode.

    Selecting XQMode

* That's it! Errors in code would be underlined as you type! Warnings would be underlined in yellow. * You can suspend warnings as well as error checking temporarily from the XQMode menu.

Problems List


![Problems List](https://lh4.googleusercontent.com/--hdR6mLu_eA/UIcB4L7kUEI/AAAAAAAAAzE/--oKK0t_Uw0/s513/Problems%2520list1.png)
* You can view a scrollable list of all errors in the sketch at the bottom pane. * Clicking on any error in the list switches to its tab and highlights the error line. * You can toggle between the problems list and the console by using the buttons at the bottom.

Problems Bar


![Problems Bar](https://lh5.googleusercontent.com/-g02gAzkrR6Y/UIcAZdxYDuI/AAAAAAAAAyw/utBS4V1IQis/s338/errorbar1.png)
* Markers for all errors and warnings in a tab are also shown in the problems bar on the right. * Hover over any marker to see the error description. * Click on a marker to scroll to its error location.

Problems Window


![Problems Window](https://lh6.googleusercontent.com/-we8THwpUrE8/UIcCsxYjfZI/AAAAAAAAAzU/94Wn01NCmfc/s461/problem%2520window1.png)
* You can also go to XQMode menu > Show Problems Window to view the errors list in a separate window. * The number next to the window title displays how much time is being taken per error check of the code.

Customization

  • You can customize certain properties of XQMode by editing XQMode/theme/theme.txt
Clone this wiki locally