| Current Path : /usr/lib/beyondcompare/help/ |
| Current File : //usr/lib/beyondcompare/help/grammars.html |
<!DOCTYPE html>
<html>
<head>
<title>Grammars</title>
<meta name="generator" content="Help & Manual" />
<meta name="keywords" content="grammar,grammar using,syntax highlighting" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link type="text/css" href="default.css" rel="stylesheet" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="helpman_settings.js"></script>
<script type="text/javascript" src="helpman_topicinit.js"></script>
<script type="text/javascript">
HMSyncTOC("index.html", "grammars.html");
</script>
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript">
$(document).ready(function(){highlight();});
</script>
</head>
<body style="margin: 0px 0px 0px 0px; background: #FFFFFF;">
<table width="100%" border="0" cellspacing="0" cellpadding="5"
style="margin: 0px; background: #9D0909 url(red-bg.jpg) 0px 0px repeat-x;">
<!-- <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#B01213"> -->
<tr valign="middle">
<!-- <td style="width: 10px"> </td> -->
<td align="left">
<h1 class="p_Heading1"><span class="f_Heading1">Grammars</span></h1>
</td>
<td align="right">
<span style="font-size: 9pt">
<a href="file_formats.html"
onmouseover="document.images.prev.src='prev-hot.png'"
onmouseout="document.images.prev.src='prev.png'"
><img name=prev src="prev.png" border=0 alt="Previous"
></a><a href="file_formats.html"
onmouseover="document.images.top.src='top-hot.png'"
onmouseout="document.images.top.src='top.png'"><img name=top src="top.png" border=0 alt="Up"
></a><a href="dlgreport.html"
onmouseover="document.images.next.src='next-hot.png'"
onmouseout="document.images.next.src='next.png'"><img name=next src="next.png" border=0 alt="Next"
></a>
</span>
</td>
</tr>
</table>
<!-- Placeholder for topic body. -->
<table width="100%" border="0" cellspacing="0" cellpadding="5"><tr valign="top"><td align="left">
<p class="p_Normal">A file format specification can include a grammar definition, used for syntax highlighting, and to help define which differences are important.</p>
<p class="p_Normal">For example, our standard file format for C/C++ source code includes a grammar that recognizes keywords, comments, and literal strings. By <a href="rules_vs_file_formats.html" class="topiclink">flagging differences in comments as unimportant</a>, you can better concentrate on important differences.</p>
<p class="p_Normal">A grammar definition in Beyond Compare is fairly simplistic. It does not support nested or context-specific definitions, so it doesn't handle tagged languages like HTML and PHP very well. On the other hand, it is a big step up from Beyond Compare 2's functionality.</p>
<p class="p_Normal">To edit a grammar, pick <span class="f_Command">Tools > File Formats</span> <img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="fileformatmanager.png"/> and find the appropriate file format. Switch to the <span class="f_Command">Grammar</span> tab and <a href="dlgtextgrammaritem.html" class="topiclink">edit the grammar items</a>.</p>
</td></tr></table>
</body>
</html>