ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

PPCL Language Syntax and Editor

by blandfbt ST3

PPCL plugin and syntax for Sublime Text 3

Details

Installs

  • Total 1K
  • Win 1K
  • Mac 170
  • Linux 89
Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28
Windows 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 0 0 2 0 0 1 0 0 0 0 0 0 1 0 0 0 1 2 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
01234Jun 12Jun 9Jun 6Jun 3May 31May 28May 25May 22May 19May 16May 13May 10May 7May 4May 1Apr 28Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 2Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 1 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 1May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 1May 20 Linux: 0 Mac: 0 Windows: 1May 19 Linux: 0 Mac: 0 Windows: 1May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 1 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 2May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 1May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 2 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 1Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 1Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 2Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 1 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 1May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 1May 20 Linux: 0 Mac: 0 Windows: 1May 19 Linux: 0 Mac: 0 Windows: 1May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 1 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 2May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 1May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 2 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 1Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 1Jun 12 Linux: 0 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 0 Windows: 0Jun 10 Linux: 0 Mac: 0 Windows: 2Jun 9 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 1 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 1May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 1May 20 Linux: 0 Mac: 0 Windows: 1May 19 Linux: 0 Mac: 0 Windows: 1May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 1 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 2May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 1May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 2 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 1Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 1

Readme

Source
raw.​githubusercontent.​com

alt tag

PPCL

This is a plugin and syntax for the PPCL langauge for Sublime Text 3. It has a syntax highliting for .pcl files It also has features specific to writing PPCL

Written by Brien Blandford at Smith Engineering, PLLC. http://www.smith-eng.com/index.php Contributions from Nathan Watkins

LineChanger.py is a PPCL plugin for the Sublime Text 3 text editor.

Copyright © 2016 Brien Blandford

This program is free software: you can redistribute it and/or modify it under the terms of the MIT license included in this package.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MIT license for more details.

You should have received a copy of the license with this package, but one can be found at https://opensource.org/licenses/MIT.

Installing

  • Ensure Sublime Text 3 is installed
    • You should really consider getting a license to support the awesomeness of ST3
  • via Package Control coming soon (hopefully) and preferred
    • Download Package Control and follow their instructions
    • in ST3, access the console by typing ctrl + `
    • from Package Control, look for the install link, and paste their code into the console. Hit enter
    • to access the command palette, type ctrl + shift + p
    • type Package Control: Install Package in the command palette. Then type PPCL and click on the link
    • Using Package Control ensures the PPCL Editor will stay up to date automatically
  • Manual
    • Click “Clone or Download” and (for windows) unzip the package to the following, where user is your username -C:\Users\ user \AppData\Roaming\Sublime Text 3\Packages\PPCL
    • Otherwise drop the package wherever you have ST3 Packages
      • or
    • In ST3, go to Preferences and Browse Packages
    • This will open the directory containing the packages for ST3, and you can drop the unzipped contents there

Usage

  • Note that some of these functions keymappings are different for Linux and Mac machines
  • Open Help Window
    • Press ctrl + shift + h to show some relevant native ST3 keyboard shortcuts and all the shortcuts for PPCL
  • Comment Toggling
    • To toggle comments, select any text and use ctrl + /, like the Native ST3 command
  • Line Number Increment
    • To increment line numbers, make a seletion of text, and press ctrl + shift + l
      • This will increment only the selected text, but will update all GOs and other branch statements in the whole document
      • If no text is selected, the default change will be the whole document
    • This will prompt for the starting line number followed by the increment
      • in the form of 1000:10
    • This will automatically update any GOTO and GOSUB references
  • Add Line Numbers
    • Pressing enter will increment lines automatically
    • The default increment is 1
    • In the Tools->PPCL->Line Increment menu, there is a user-selection for the line increment amount
    • if adding a line would increment => the following line, it won't progress
  • Toggling DEFINE statements
    • ctrl + alt + d for toggling the off the DEFINE statements (i.e. %X% becomes “AH1.HHW.”)
    • ctrl + alt + r for toggling the on the DEFINE statements (i.e. “AH1.HHW.” becomes %X%)
  • Toggling Periods/Underscores in Point Names
    • ctrl + alt + p changes all underscores in point names to periods
    • ctrl + alt + u changes all periods in point names to underscores
  • Copy a chunk of Code
    • ctrl + shift + c prompts you for how many times you want the selected code copied, and pastes in where you have selected.
  • other features, such as the big cursor, regex searching, etc. are natively supported by ST3
  • a similar funtion as InsertNums has been added to the package. Other packages cna work in tandem with the PPCL editor

Native ST3 Commands / Properties

  • Set Syntax
    • in menu toolbar select “View” -> “Syntax” -> “PPCL”
  • Toggle Case
    • Select the text you want to toggle, and press
      • ctrl + KU for upper case
      • ctrl + LU for lower case
  • Big Cursor
    • This can be done many ways
    • ctrl + F, and find all the text, select it all, and now move around with the arrow keys
    • Highlight some text, press alt + F3 to select all
    • Using the scroll wheel of the mouse, hold it down and drag for constant row selecting
    • Hold Ctrl and click the mouse in whatever locations
  • Find Next
    • Select some text, press ctrl + D to select the next occurence of that text
    • Keep hitting ctrl + D until all instances are selected
    • ctrl + U goes back one selection
  • Find
    • Press ctrl + F
      • buttons on the left allow search specifics to be toggled
  • Delete line, shift up
    • navigate to the line you want to delete, press ctrl + shift + del
  • Shift entire line
    • Hold ctrl + shift and move with the arrows

Block Commenting for PPCL

alt tag

Insert lines and auto renumber

alt tag

Bulk edit the code, adding points

alt tag

Big cursor, natively part of Sublime Text

alt tag

alt tag