Curl
 

Menu
 Chapter.1
 Chapter.2
 Chapter.3
 Chapter.4
 Chapter.5
 Chapter.6
 Chapter.7
 Chapter.8
 Chapter.9
 Chapter.10
 
 
■テキストの操作

文字フォーマットの構文
{ text
options1 = value,
options2 = value,
・・・・・・
optionsN = valueN,
ここに出力するコンテンツを記述します
}

optionには、文字フォーマットで利用できるオプションを指定します。
value には、そのオプションに設定する値を指定します。
すべてのオプションにはデフォルト値が設定されています。
オプションを省略した場合は、デフォルト値が適用されます。  文字オプション表はこちら


■HTMLと比べてみよう☆

では、下図の部分を例にしてHTMLとCurlを比べてみましょう


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<title>Curl入門</title>
</head>
<body>
<div align="center">
Curl入門<br>
<!--テキストの位置や大きさをこんな風に書きます-->
<span style="font-size:20pt;">
<font color="orange"><b>Welcome to CurlWold!</b></font></span><br>

<b><em><u>ようこそ!Curlの世界へ!!</u></em></b>
</div>

{curl 6.0 applet}
{curl-file-attributes character-encoding = "shift-jis"}
{applet manifest = "manifest.mcurl"} {title
Curl入門}
{center
{ text
font-size = 20pt,
color = "orange",
{bold
Welcome to Curl Wold! }}
{br}
{bold
{italic
{underline,
ようこそ!Curlの世界へ!! }} }}
※対比のためHTMLの<head>内のstyle部分を省きました。

この部分↓の文字は【見出し】タグを使っています。

<h1><font color=green><u>プロフィール</u></font></h1> {heading level = 1,
{center
text-underline? = true,
color = "green",
{bold
プロフィール} }}


Chapter.2(Part.1)へ戻る
Chapter.2(Part.3)へ進む