Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Property List

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
(Explained what a list was)
(Technical Syntax: Corrected the end of the lsedit, added information about the # and the line count.)
 
(4 intermediate revisions not shown)
Line 1: Line 1:
-
==List==
+
str A '''property list''' is commonly used for storing multi-line descriptions and anything else that might need a home for a large block of text.  You can create a list using [[lsedit]].
-
A list is commonly used for storing multiline descriptions and anything else that might need a home for a large block of text.  You can create a list using [[lsedit]].
+
==Technical Syntax==
 +
While not particularly important to know, it can be useful to know that at the core a list is just bunch of numbered props in a [[propdir]].
-
===Technical Syntax===
+
lsedit me=example
 +
<    Welcome to the list editor.  You can get help by entering '.h'    >
 +
< '.end' will exit and save the list.  '.abort' will abort any changes. >
 +
<    To save changes to the list, and continue editing, use '.save'    >
 +
< Insert at line 7 >
 +
.l
 +
this
 +
is
 +
an
 +
example
 +
list
 +
pretty simple huh?
 +
< listed 6 lines starting at line 1 >
 +
.end
 +
< Editor exited. >
 +
< list saved. >
-
While not particularly important to know, it can be useful to know that at the core a list is just bunch of numbered props in a [[propdir]].
+
This will produce the following:
-
<pre>lsedit me=example
+
 
-
<    Welcome to the list editor. You can get help by entering '.h'    >
+
  ex me=example#/
-
< '.end' will exit and save the list.  '.abort' will abort any changes. >
+
str /example#/1:this
-
<    To save changes to the list, and continue editing, use '.save'    >
+
str /example#/2:is
-
< Insert at line 7 >
+
str /example#/3:an
-
.l
+
str /example#/4:example
-
this
+
str /example#/5:list
-
is
+
str /example#/6:pretty simple huh?
-
an
+
6 properties listed.</pre>
-
example
+
ex me=example#
-
list
+
str /example#/:6
-
pretty simple huh?
+
 
-
< listed 6 lines starting at line 1 >
+
As you can see lsedit adds a # at the end of the list name, as well as setting listname# to the number of lines in the list. Neither of these are required for a proper Property List. However, if the line count is included and is incorrect, many programs will fail to read the list correctly.
-
.abort
+
 
-
< Edit aborted. >
+
 
-
< list not saved. >
+
[[Category:MUCK Documentation]]
-
ex me=example#/
+
-
str /example#/1:this
+
-
str /example#/2:is
+
-
str /example#/3:an
+
-
str /example#/4:example
+
-
str /example#/5:list
+
-
str /example#/6:pretty simple huh?
+
-
6 properties listed.</pre>
+

Latest revision as of 03:15, 2 June 2012

str A property list is commonly used for storing multi-line descriptions and anything else that might need a home for a large block of text. You can create a list using lsedit.

Technical Syntax

While not particularly important to know, it can be useful to know that at the core a list is just bunch of numbered props in a propdir.

lsedit me=example
<    Welcome to the list editor.  You can get help by entering '.h'     >
< '.end' will exit and save the list.  '.abort' will abort any changes. >
<    To save changes to the list, and continue editing, use '.save'     >
< Insert at line 7 >
.l
this
is
an
example
list
pretty simple huh?
< listed 6 lines starting at line 1 >
.end
< Editor exited. >
< list saved. >

This will produce the following:

ex me=example#/
str /example#/1:this
str /example#/2:is
str /example#/3:an
str /example#/4:example
str /example#/5:list
str /example#/6:pretty simple huh?
6 properties listed.</pre>
ex me=example#
str /example#/:6

As you can see lsedit adds a # at the end of the list name, as well as setting listname# to the number of lines in the list. Neither of these are required for a proper Property List. However, if the line count is included and is incorrect, many programs will fail to read the list correctly.

Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox