という話が意外と広まっていない気がした。
http://blog.livedoor.jp/staff/archives/51100056.html 参照。
>||
#!/bin/sh
/usr/bin/mdfind "kMDItemContentType == 'public.perl-script' && kMDItemFSName ==
'*.pl' && kMDItemTextContent == '$1'"
||<
と「>||」と「||<」で括って書けば
#!/bin/sh /usr/bin/mdfind "kMDItemContentType == 'public.perl-script' && kMDItemFSName == '*.pl' && kMDItemTextContent == '$1'"
という感じになって便利。
>|perl|
#!/usr/bin/perl
use strict;
use warnings;
print 'hello world!\n';
||<
で
#!/usr/bin/perl use strict; use warnings; print 'hello world!\n';
になる。(ってsyntax hilightに対応してねーのか)
http://wiki.livedoor.jp/staff/d/DesignTemplate/CommonFile#content_1