Case-sensitivity of identifiers: Difference between revisions
Content deleted Content added
Drkameleon (talk | contribs) |
m →{{header|Phix}}: added syntax colouring the hard way, phix/basics |
||
Line 1,114: | Line 1,114: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
{{libheader|Phix/basics}} |
|||
Phix is case sensitive |
Phix is case sensitive |
||
<lang Phix> |
<!--<lang Phix>--> |
||
sequence dog = "Benjamin" |
|||
<span style="color: #004080;">sequence</span> <span style="color: #000000;">dog</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"Benjamin"<span style="color: #0000FF;">,</span> |
|||
sequence Dog = "Samba" |
|||
<span style="color: #000000;">Dog</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"Samba"<span style="color: #0000FF;">,</span> |
|||
sequence DOG = "Bernie" |
|||
<span style="color: #000000;">DOG</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"Bernie"</span> |
|||
printf( 1, "The three dogs are named %s, %s and %s\n", {dog, Dog, DOG} ) |
|||
<span style="color: #7060A8;">printf<span style="color: #0000FF;">(</span> <span style="color: #000000;">1<span style="color: #0000FF;">,</span> <span style="color: #008000;">"The three dogs are named %s, %s and %s\n"<span style="color: #0000FF;">,</span> <span style="color: #0000FF;">{<span style="color: #000000;">dog<span style="color: #0000FF;">,</span> <span style="color: #000000;">Dog<span style="color: #0000FF;">,</span> <span style="color: #000000;">DOG<span style="color: #0000FF;">}</span> <span style="color: #0000FF;">) |
|||
</lang> |
<!--</lang>--> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |