PDA

View Full Version : Eclipse LZX editing


cwalker
03-26-2004, 03:34 PM
Four steps to a free Laszlo IDE:

STEP 1:
Download Eclipse:
http://www.eclipse.org/downloads/index.php

I recommend the 3.0 Milestone releases.

STEP 2:
Download XMLBuddy, an xml plugin for Eclipse:
http://www.xmlbuddy.com/

Get the right version for your eclipse.

Installation is simple. After you unzip XMLBuddy, just
drag the folder into your eclipse/plugins folder.

STEP 3:
Tell Eclipse to use XMLBuddy for *.lzx files:
In Eclipse:
1) Go to menu: Window -> Preferences
2) Twist down Workbench, and select File Associations
3) Click "Add" next to the File Types box and enter *.lzx
4) Click "Add" next to the Associated editors box and select XMLBuddy

STEP 4:
To associate your lzx files with Laszlo's DTD,
simply add the following two lines to the top of each file:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE canvas SYSTEM "http://www.laszlosystems.com/lps/tools/lzx.dtd" >


That's all there is to it!
-christian

ows
05-03-2004, 09:46 AM
As an alternative to step 4:

1) Go to menu: Window -> Preferences
2) Twist down XMLBuddy, and then XML, and then Validation
3) Click on DTD
4) Click "New..."
5) In the "New Default DTD" dialog, enter:
Root Name: canvas
PUBLIC Id: -//Laszlo Systems, Inc.//DTD LZX 2003/05//EN
SYSTEM Id: http://www.laszlosystems.com/lps/tools/lzx.dtd
6) Repeat steps (4-5), but with a Root Name of "library".

This will configure XMLBuddy to use the online lzx DTD for XML files with a root element of <canvas> or <library>.

raven
07-16-2004, 09:52 AM
This worked for me. Thanks for posting the steps.

I wonder if there is a way to do the same thing that Dreamweaver does by allowing you to preview it in Eclipse?

M@

chrislyman
10-14-2004, 11:48 AM
Hi,

There's an option in Dreamweaver to import a DTD in order to create a tag library, but it doesn't work with the Laszlo DTD. Anybody have any ideas why or if there's any way to fix it?

Best,
Chris