Hello There, Guest! Login or Register


Documentation: LVP Pawn Editor Options and Panel Positioning
#1
The LVP Pawn Editor has many options that allow you to change the look and layout of the editor. In this tutorial I will be going over the description of these options and what they change, and also how to re-position and group the panels.


Editing LVP Pawn Editor’s Options

Here is an overview of the LVP Pawn Editor options and what they do.

Location:
Options - > Editor Options


Text Editor Tab:

[Image: lvp-pawn-editor-settings.png]

Enable smart indentation
Allows for automatic indentation of new lines based on depth of nesting.

Enable indentation guides (1)
A faint gray dotted line, showing connection between respective opening and closing brackets.

Enable whitespace guides (2)
A faint gray dot to visualize every space in your code.

Replace tabs with spaces (tab width)
Replaces tabs with spaces in order to keep the code clean and consistent. By default, this is set to 4 and can be changed.

Clear trailing whitespace
Clears whitespace at the end of a line.

Enable word wrapping (3)
Enables word wrapping for lines that are longer than what is in view. Prevents the horizontal scroll bar from appearing.

Enable code folding (4)
Enables nested code to be collapsed using the square button at the beginning of the line.

Show line numbers (5)
Shows the line number of the code.

Show offset line (column) (6)
A vertical line at the given column which could be a visual guide to prevent your lines from getting too long.

Font
Allows the user to change the font to one that is more preferred.


Text Editor (style) Tab:

Highlight syntax
Enables highlighting for the entire syntax.

Keywords should be bold
Makes keywords in the code bold. (i.e, new, public, if, else, etc)

Numbers should be bold
Makes numbers in the code bold.

The remaining options in this tab allow you to change colors used in syntax highlighting.


Text Editor (auto-complete) Tab:

At this time, these options are not available in the LVP Pawn Editor, although they may become available at a later time.


LVP Pawn Editor Tab:

Allow multiple instances to run simultaneously?
Will let you to run more than one instance of the pawn editor. Note: This does not apply to opening project files.

Restore the Pawn Editor’s layout on launch?
Restores positioning of panels when launching at a later time. Please see “Positioning Panels” below for more information and a brief tutorial on how to re-position the panels to your liking.

Allow drag and drop for project directories
In the Project Overview panel, you can drag and drop files and directories to other locations.

Restore a project’s state when opening it
Restores all open tabs and state of project window, such as collapsed and/or expanded directory trees, when a project is reopened.


User Tab:

Self explanatory really.

Your name
Your full name.

Email address
Your email address.


Positioning Panels:

And now for a brief tutorial on positioning panels in the LVP Pawn Editor.

After unpinning a panel, you can move it to a desired location.

Pinning and Unpinning Panels

The following image shows a pinned panel, notice the position of the pin icon.
[Image: panel-pinned.png]

After clicking the pin, it should look like the following.
[Image: panel-unpinned.png]

And now the panel can be re-positioned.

Dragging and Dropping the Panel

When dragging a panel to a desired area you will see anchors at the top, left, bottom, right and middle of the window. (as shown in the image below)

[Image: lvp-pawn-editor-3.png]

Drag the panel's title bar on to one of the anchors and the new position's background will turn gray, as in the image above. Drop it. Now your panel should be successfully re-positioned.

Another cool feature is, you can combine panels, creating one panel with tabs to navigate between them. This saves space and looks great.

To do this drag the desired, unpinned, panel on to another panel, you will see an anchor that looks like a panel with tabs at the bottom, (see the red circle below).

[Image: lvp-pawn-editor-panel-merge-tabs.png]

After dragging and dropping, it should look like the following.

[Image: lvp-pawn-editor-panel-tabs.png]

Something worth noting, any panels that are not pinned will remain in view, even when the mouse is not directly over them. You can make panels automatically hide when removing the cursor by pinning them when you are done positioning. This works with single panels and combined panels.


That's it for now. I hope this topic helped.

Thanks for reading,
Harry

Reply