Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Curl (programming language)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== As lightweight markup == Because Curl provides for both user-defined text procedures and [[Style sheet (web development)|style sheets]], it can be used readily as [[Domain-specific language|domain-specific]] lightweight markup. A major advantage over plain text HTML markup is that the text encoding can be set to [[UTF-8]], and text entered in a [[Unicode]]-enabled [[text editor]] with no [[Escape character|escaping of characters]] (like JavaScript, Curl is Unicode friendly). A [[poetry]] example is: <syntaxhighlight lang="text"> {poem || wraps entire poem {stanza || first verse here in any language } {stanza || another verse here in any language } } </syntaxhighlight> which can initially be implemented by defining the poem and stanza markup as paragraph text formats. Stanza could be further refined to include a hidden navigation anchor for page navigation using the Curl {destination} which is itself a text procedure. The same markup can be used for different results, as one can style text to be visible in one context and invisible in another. Curl also permits top-level file inclusion so that a source text in markup can be included in different parent files. In education, for example, one could create a source file of test questions, and include it in both a student and a teacher version of the text.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)