LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Difference (from prior major revision) (no other diffs)

Added: 5a6,7
A test addition to the page


This is a sandbox page. Try out editing here because there is nothing important or sacred on this page moomoomoomoo Here I am

A test addition to the page

The following code tests a table

Column AColumn BColumn C
Entry for row 1, Column AEntry for row 1, Column BEntry for row 1, Column C
Entry for row 2, Column AEntry for row 2, Column BEntry for row 2, Column C
Spanning entry Entry for row 3, Column C
More spanning

Cell contents are always centered. Columns are not always the same width but depend upon the widest text.

The command used to insert this image is http://www.linuxcnc.org/chips2t.gif.

The down side of this is that the image must remain in place and each look at this page by a new person hammers the other server.

[LinuxCNC web site] [Linuxcnc wiki temporary home]

That's all folks!


[Test New Page]?

Touch Probe

1. Test
1.1. prova
2. SandBox SampleUndefinedPage
2.1. I am italics and bold
2.1.1. I am bold and italics
2.2. I am a [bracketed link].
2.2.1. An inline image
3. About highlighting in gEdit
3.1. Highlighting configuration files
3.2. Highlighting ngc files
4. Adding a mime-type

1. Test

Here we will test the table of contents.
With indented text

1.1. prova?

This is some indented text
This is some indented text
This is some indented text

2. SandBox SampleUndefinedPage?

This is some more indented text
This is some more indented text
This is some more indented ext
This is some more indented text

2.1. I am italics and bold

This is yet even more text This is yet even more text This is yet even more text This is yet even more text

2.1.1. I am bold and italics

another Paragraph another Paragraph another Paragraph

2.2. I am a [bracketed link].

some more crap some more crap some more crap some more crap

2.2.1. An inline image

With Text added.

Testing the new wiki. (AJ)

this is another test... does it work??

just testing to see if this works

Torch Height Control

This is a simple alternative for the balls/rod arrangement of the Renishaw touch probe.:



indented text

3. About highlighting in gEdit

To manually select syntax-highlighting for a file in gEdit you'll need to select the right "Highlight mode" from the view-menu.

If you want to change the color-scheme for the active highlight mode, open the preferences from the Edit-menu, then chose the syntax highlighting tab.

Highlight style files are in the /usr/share/gtksourceview-1.0/language-specs directory, you'll need root access to edit these files.

3.1. Highlighting configuration files

Copy ini.lang to hal.lang and modify the first couple of lines so that they read as below.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="HAL" version="1.0" _section="Others" mimetypes="text/x-hal-file;application/x-hal-file">

Now when you open gEdit and pick a highlighting mode you will see hal in there.

The specific markup is listed in the file named language.dtd in the same directory. Each element corresponds to one set of highlight characteristics. For example

<line-comment _name = "HAL Comment" style= "Comment">

Will pick out the hash mark (#) and use the name = "HAL Comment" style.

While you may only use the element name, you can use an element like "line-comment" more than once with the same name if you wish to have several different highlight types displayed using the same coloration. You can also have more than one "line-comment" with different names and the color picker will allow you to colorize each differently.

3.2. Highlighting ngc files

To highlight .ngc files you can simply download the ngc.lang file and copy it to your /usr/share/gtksourceview-1.0/language-specs directory.

use the color picker in gEdit to give some nice colors to your ngc-files =)

4. Adding a mime-type

The ngc.lang file is configured to automatically highlight files with the text/ngc mime-type, Ubuntu marks the .ngc-files as text/plain, if follow these instructions the .ngc-files are automatically marked as text/ngc.

from the command-line:

sudo gedit /usr/share/mime/packages/freedesktop.org.xml

add these lines to the document (not at the beginning, but between 2 other <mime-type> elements)

<mime-type type="text/ngc">
<sub-class-of type="text/plain"/>
<comment>ngc document</comment>
<glob pattern="*.ngc"/>

save the file and exit gEdit.

Rebuild the mime-database, from the command-line:

sudo su
update-mime-database /usr/local/mime



Closed Loop Spindle Speed Control


GladeVCP? is an EMC2 component which adds the ability to add a virtual control panel to an EMC user interface like Axis or Touchy. It is similar to PyVCP; whereas PyVCP panels are created by editing an XML file manually, GladeVCP? uses the glade WYSIWYG user interface editor. Therefore, it's faster and easier to create visually pleasing panels with GladeVCP?.

Installation prerequistites

Gladevcp is now in release 2.4.6 and later. Recent fixes and enhancements are likely to show up in 'master' first. For the examples below I assume master is installed as /emc2-dev. Build and install as per instructions. You will to install need python-xlib:
 sudo apt-get install python-xlib

Rockhopper Web Server

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited May 20, 2019 10:42 pm by Rsteiner (diff)
Published under a Creative Commons License