English 中文(简体)
是否有办法在文本Wrangler制定法典?
原标题:Is there a way to format code in TextWrangler?

I m 利用MacOS X文本Wrangler进行一些网络开发。 是否有办法使法规自动化?

问题回答

Yes, there is a possibility but not a simple one. Using Text Filters, if you can find a filter your choice you put it into Library/Application Support/TextWrangler/Text Filters and reach it from Text/Apply Text Filter menu.

This is how you do it for XML: http://magp.ie/2010/02/15/format-xml-with-textwrangler/

and for PHP: http://wizguild.com/textwrangler_phptidy_filter/

• 创建新档案——和;

Copy and Paste this lines below:

#!/bin/sh XMLLINT_INDENT=$ xmllint --format --encode utf-8 -

Desktop

开放式笔试和双倍制;~/Library/Application Support/TextWrangler/Text Filters

您 Tidy XML.sh from Format to Text Filters.

公开文本Wrangler and beautifier You xml file.





相关问题
Regex autoincrement replacements

is there a string in regular expressions that can instruct it to autoincrement it s replacements, whether they be numbers or letters. Thank you for instance, I have strings that should be number 1, ...

reform URL with GREP

I have a lot of URLs like this one <a href="http://abc123.linkbucks.com"><img src="http://img187.imagevenue.com/loc1115/th_99189_image_122_1115lo.jpg" /></a> I need to substitute ...

Regular expression for certain amount of characters

I m trying to change a lot of URLs with TextWrangler, those ending with m.htm should lose the m, but only if the total number of characters in the filename is 7. Those with fewer characters should not ...

Using GREP / RegEx to find and replace string

So, I m trying to migrate a database from Textpattern CMS to something more generic. There are some textpattern-specific commands inside of articles that pull in images. I want to turn these into ...

Why isn t os.walk recognising my variable name?

I ve written the following in TextWrangler: directory = raw_input("See contents of: ") for root, dirs, files in os.walk(directory): print root, dirs, files Unfortunately, when I run it in ...

热门标签