⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 astyle.html

📁 一个强大的源代码格式化程序
💻 HTML
📖 第 1 页 / 共 5 页
字号:
									'while'...). Treat closing header blocks (e.g. 'else', 'catch') as stand-alone 
									blocks.</STRONG> </FONT></FONT>
					</P>
					<BLOCKQUOTE>
						<P><STRONG><FONT color="#993399" size="3"><TT>isFoo = true;<BR>
									</TT></FONT><FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT>
									</TT></FONT>
								<BR>
								<FONT size="3"><TT>&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT>&nbsp; 
										bar();</TT></FONT>
								<BR>
								<FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else</TT></FONT>&nbsp;<FONT face="Courier New" color="#ff0000">{</FONT><BR>
								<FONT size="3"><TT>&nbsp;&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
							</STRONG><FONT color="#ff0000" size="3"><TT>
									<BR>
									<FONT color="purple"><FONT color="#993399"><STRONG><FONT color="#ff0000">}<BR>
												</FONT>isBar = false;</STRONG></FONT></FONT></TT></FONT></P>
						<FONT color="#ff0000" size="3"><TT>
								<p><STRONG><font face="Times New Roman" color="#330000" size="3">becomes:</font> </STRONG>
								</p>
								<p><font color="#993399" size="3"><tt><STRONG>isFoo = true;<BR>
												<BR>
												<FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT> </TT></FONT>
												<BR>
												<FONT size="3"><TT>&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT>&nbsp; 
														bar();</TT></FONT>
												<BR>
											</STRONG><FONT color="#993399" size="3"><TT>
													<BR>
													<STRONG><FONT color="#ff0000">} </FONT>else</STRONG></TT></FONT><STRONG>&nbsp;<FONT color="#ff0000">{</FONT><BR>
												<FONT size="3"><TT>&nbsp;&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
												<BR>
											</STRONG><STRONG><FONT color="#ff0000" size="3"><TT>}<BR>
														<BR>
														<FONT color="purple"><FONT color="#993399">isBar = false;</FONT></FONT></TT></FONT>
											</STRONG></tt></font>
								</p>
							</TT></FONT></BLOCKQUOTE>
					<P><FONT size="+0"><FONT color="navy" size="3"><STRONG>--break-elseifs</STRONG></FONT></FONT><FONT size="3"><BR>
							<FONT color="#000000"><STRONG>Break 'else if()' header combinations into seperate 
									lines.</STRONG> </FONT></FONT>
					</P>
					<BLOCKQUOTE>
						<P><STRONG><FONT color="#993399" size="3"><TT>if (isFoo) <FONT color="#ff0000">{</FONT> </TT>
								</FONT>
								<BR>
								<FONT size="3"><TT>&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT>&nbsp; 
										bar();</TT></FONT>
								<BR>
								<FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else if (isBar())</TT></FONT><FONT face="Courier New" color="#ff0000">{</FONT><BR>
								<FONT size="3"><TT>&nbsp;&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT> anotherBar();</TT></FONT>
							</STRONG><FONT color="#ff0000" size="3"><TT>
									<BR>
									<FONT color="purple"><FONT color="#993399"><FONT color="#ff0000"><STRONG>}</STRONG></FONT></FONT></FONT></TT></FONT></P>
						<FONT color="#ff0000" size="3"><TT>
								<p><STRONG><font face="Times New Roman" color="#330000" size="3">becomes:</font> </STRONG>
								</p>
								<p><font color="#993399" size="3"><tt><STRONG>if (isFoo) <FONT color="#ff0000">{</FONT><BR>
												<FONT size="3"><TT>&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT>&nbsp; 
														bar();</TT></FONT>
												<BR>
											</STRONG><STRONG><FONT color="#993399" size="3"><TT><FONT color="#ff0000">} </FONT>else
														<BR>
														&nbsp;&nbsp;&nbsp; if (isBar())</TT></FONT><FONT face="Courier New" color="#ff0000">{</FONT><BR>
												<FONT size="3"><TT>&nbsp;&nbsp;&nbsp;</TT></FONT><FONT color="#993399" size="3"><TT>&nbsp;&nbsp;&nbsp;&nbsp; 
														anotherBar();</TT></FONT></STRONG><FONT color="#ff0000" size="3"><TT><BR>
													<FONT color="purple"><FONT color="#993399"><FONT color="#ff0000"><STRONG>&nbsp;&nbsp;&nbsp; }</STRONG>
															</FONT></FONT></FONT></TT></FONT><STRONG></STRONG></tt></font>
								</p>
							</TT></FONT></BLOCKQUOTE>
					<P><STRONG>-p</STRONG>
				</font><STRONG><font color="#000000" size="3">OR</font><font color="#000080" size="3"> --pad=oper</font></STRONG><font size="2"><br>
				</font><STRONG><font size="3">Insert space padding around operators only.</font> </STRONG>
				</P> <blockquote>
					<P><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
							<br>
							<font color="#993399" size="3"><tt>&nbsp;&nbsp;&nbsp; a = bar((b-c)*a,*d--);</tt></font>
						</STRONG>
					</P>
					<p><STRONG><font color="#330000" size="3">becomes:</font> </STRONG>
					</p>
					<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
							<br>
							<font color="#993399" size="3"><tt>&nbsp;&nbsp;&nbsp; a = bar((b - c) * a, *d--);</tt></font></STRONG></p>
				</blockquote>
				<p>&nbsp;</p>
				<p><font color="#000080" size="3"><STRONG>--pad=paren</STRONG></font><font size="2"><br>
					</font><STRONG><font size="3">Insert space padding around parenthesies only.</font> </STRONG>
				</p>
				<blockquote>
					<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
							<br>
							<font color="#993399" size="3"><tt>&nbsp;&nbsp;&nbsp; a = bar((b-c)*a,*d--);</tt></font>
						</STRONG>
					</p>
					<p><STRONG><font color="#330000" size="3">becomes:</font> </STRONG>
					</p>
					<p><STRONG><font color="#993399" size="3"><tt>if ( isFoo )</tt></font>
							<br>
							<font color="#993399" size="3"><tt>&nbsp;&nbsp;&nbsp; a = bar( ( b-c )*a, *d-- );</tt></font></STRONG></p>
				</blockquote>
				<p>&nbsp;</p>
				<p><STRONG><font color="#000080" size="3">-P</font><font color="#000000" size="3">OR</font><font color="#000080" size="3">
							--pad=all</font></STRONG><font size="2"><br>
					</font><STRONG><font size="3">Insert space padding around operators AND parenthesies.</font>
					</STRONG>
				</p>
				<blockquote>
					<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)</tt></font>
							<br>
							<font color="#993399" size="3"><tt>&nbsp;&nbsp;&nbsp; a = bar((b-c)*a,*d--);</tt></font>
						</STRONG>
					</p>
					<p><STRONG><font color="#330000" size="3">becomes:</font> </STRONG>
					</p>
					<p><STRONG><font color="#993399" size="3"><tt>if ( isFoo )</tt></font>
							<br>
							<font color="#993399" size="3"><tt>&nbsp;&nbsp;&nbsp; a = bar( ( b - c ) * a, *d-- );</tt></font></STRONG></p>
				</blockquote>
				<p><STRONG><font color="#000080" size="4">-o</font><font size="3"> OR</font><font color="#000080" size="4"></font><font color="#000099">--one-line=keep-statements</font></STRONG><font size="2"><br>
					</font><STRONG><font size="3">Don't break complex statements and multiple statements 
							residing in a single line.</font> </STRONG>
				</p>
				<blockquote>
					<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)<br>
								</tt></font><font color="#ff0000" size="3"><tt>{</tt></font></STRONG><STRONG><font color="#993399" size="3"><tt>
									&nbsp;<br>
									&nbsp;&nbsp;&nbsp; isFoo = false; cout &lt;&lt; isFoo &lt;&lt; endl;<br>
								</tt></font><font color="#ff0000" size="3"><tt>}</tt></font></STRONG></p>
					<p><font size="3"><STRONG>remains as is.</STRONG> </font>
					</p>
					<P><FONT color="#993399" size="3"><TT><STRONG>if (isFoo) DoBar(); </STRONG></TT></FONT>
					</P>
					<P><FONT size="3"><STRONG>remains as is.</STRONG> </FONT>
					</P>
				</blockquote>
				<p><STRONG><font color="#000080" size="4">-O</font><font size="3"> OR</font><font color="#000080" size="4"></font><font color="#000099">--one-line=keep-blocks</font></STRONG><font size="2"><br>
					</font><STRONG><font size="3">Don't break one-line blocks.</font> </STRONG>
				</p>
				<blockquote>
					<p><STRONG><font color="#993399" size="3"><tt>if (isFoo)<br>
								</tt></font><font color="#ff0000" size="3"><tt>{</tt></font><font color="#993399" size="3"><tt>
									isFoo = false; cout &lt;&lt; isFoo &lt;&lt; endl; </tt></font><font color="#ff0000" size="3">
								<tt>}</tt></font></STRONG></p>
					<p><font size="3"><STRONG>remains as is.</STRONG> </font>
					</p>
				</blockquote></blockquote>
			<h3><font color="#000000" size="4">The following </font><font color="#000099" size="4">other</font><font color="#000000" size="4">
					options are currently available:</font></h3>
			<blockquote>
				<p><STRONG><font color="#000080">--suffix=</font><font color="#ff0000">####</font><br>
						Append the suffix <font color="#ff0000">####</font> instead of '.orig' to 
						original filename. (e.g. --suffix=<font color="#ff0000">.prev</font>) </STRONG>
				</p>
				<p><STRONG><font color="#000080" size="4">-X</font><font size="3"> OR </font><font color="#000080">
							--errors-to-standard-output</font><br>
						Print errors and help information to standard-output rather than to 
						standard-error.<br>
						This option should be helpful for systems/shells that do not have this option, 
						such as in Windows-95.</STRONG>
				</p>
				<p><STRONG><font color="#000080">-v</font> OR <font color="#000080">--version</font><br>
						Print version number.</STRONG>
				</p>
				<p><STRONG><font color="#000080">-h</font> OR <font color="#000080">-?</font> OR <font color="#000080">
							--help</font><br>
						Print a help message and quit.<br>
						&nbsp;</STRONG></p>
			</blockquote></blockquote>
		<h3>Acknowledgements:</h3>
		<blockquote>
			<p><STRONG>-Special thanks to:<font color="#000099"> Jim Watson, Fred Shwartz, W. Nathaniel 
						Mills III, Danny Deschenes, Andre Houde, Richard Bullington, Paul-Michael 
						Agapow, Daryn Adler</font> for their patches and contributions to Artistic 
					Style !!! </STRONG>
			</p>
			<p><STRONG>-Special thanks to<font color="#000099"> Richard Bullington and</font></STRONG><a href="http://www.microstate.com"><font color="#000099"><STRONG>MicroState</STRONG></font></a><STRONG><font>
						for giving Artistic Style its original </font><font color="black">mailing-list</font>
					!!! </STRONG>
			</p>
			<p><STRONG>-Special thanks to<font color="#000099"><a href="http://www.sourceforge.net">SourceForge</font></STRONG></A><STRONG>
					for giving Artistic Style its<font color="#ff0000">home</font> !!! </STRONG>
			</p>
			<p><STRONG>-Special thanks to<font color="#000099"> Paul Michael Agapow</font> for 
					creating a GUI interface for Artistic Style on the Macintosh. </STRONG>
			</p>
			<p><STRONG>-Thanks to all the dedicated beta-testers and bug notifiers !!! </STRONG>
			</p>
			<p>&nbsp;</p>
		</blockquote>
		<h1 align="center"><font color="#0000a0">ENJOY !!!</font></h1>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -