Vidir: Difference between revisions
Content added Content deleted
(Added Wren) |
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
||
Line 42: | Line 42: | ||
=={{header|Furor}}== |
=={{header|Furor}}== |
||
<syntaxhighlight lang="furor"> |
|||
<lang Furor> |
|||
###sysinclude dir.uh |
###sysinclude dir.uh |
||
###define SEPARATOR 9 |
###define SEPARATOR 9 |
||
Line 115: | Line 115: | ||
{ „neworiginalname” } |
{ „neworiginalname” } |
||
</syntaxhighlight> |
|||
</lang> |
|||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
Should work on Windows and Linux. I have commented out all the actually destructive statements. |
Should work on Windows and Linux. I have commented out all the actually destructive statements. |
||
< |
<syntaxhighlight lang="phix">-- demo/rosetta/vidir.exw |
||
string directory = ".", |
string directory = ".", |
||
editor = iff(platform()=WINDOWS?"notepad":"gedit"), |
editor = iff(platform()=WINDOWS?"notepad":"gedit"), |
||
Line 183: | Line 183: | ||
end for |
end for |
||
?"done" |
?"done" |
||
{} = wait_key()</ |
{} = wait_key()</syntaxhighlight> |
||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
Line 220: | Line 220: | ||
Notice that all of the above operations will fail to apply if you lack sufficient permissions for the affected files or directories. |
Notice that all of the above operations will fail to apply if you lack sufficient permissions for the affected files or directories. |
||
<lang |
<syntaxhighlight lang="raku" line>use Sort::Naturally; |
||
use File::Temp; |
use File::Temp; |
||
Line 345: | Line 345: | ||
} |
} |
||
} |
} |
||
}</ |
}</syntaxhighlight> |
||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
Line 359: | Line 359: | ||
This has been written to work on Linux but should work on other platforms with minor changes. |
This has been written to work on Linux but should work on other platforms with minor changes. |
||
< |
<syntaxhighlight lang="ecmascript">import "os" for Process |
||
import "io" for Directory, File |
import "io" for Directory, File |
||
import "./fmt" for Fmt |
import "./fmt" for Fmt |
||
Line 458: | Line 458: | ||
} |
} |
||
} |
} |
||
if (verbose) System.print("All changes have now been processed.")</ |
if (verbose) System.print("All changes have now been processed.")</syntaxhighlight> |
||
{{out}} |
{{out}} |