<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Why is &quot;depth&quot; highlighted in an *.sql file?]]></title><description><![CDATA[<p dir="auto">Hellp Npp forum!</p>
<p dir="auto">Question: Why is the word “depth” highlighted in an .sql file?</p>
<p dir="auto">Below is an mysql database table. The column heading “depth” displays in bold blue in my Notepad++ window. The code below is in an .sql file.</p>
<p dir="auto">I have checked the PHP manual and the MySQL manual. The word “depth” is not a reserved word or a keyword in either php or mysql.</p>
<p dir="auto">I have got a screen shot but I can’t figure out how to insert an image in a post on this forum.</p>
<p dir="auto">CREATE TABLE IF NOT EXISTS <code>categories</code> (<br />
<code>cat_id</code> smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT ‘Specific id for each of the categories.’,<br />
<code>main_id</code> smallint(5) unsigned DEFAULT NULL,<br />
<code>parent_id</code> smallint(5) unsigned DEFAULT NULL,<br />
<code>children</code> varchar(255) DEFAULT NULL,<br />
<code>**depth**</code> tinyint(4) DEFAULT NULL,<br />
<code>category</code> varchar(255) DEFAULT NULL COMMENT ‘’,<br />
<code>display_cat</code> varchar(255) DEFAULT NULL COMMENT ‘’,<br />
PRIMARY KEY (<code>cat_id</code>),<br />
KEY <code>parent_id</code> (<code>parent_id</code>),<br />
KEY <code>category</code> (<code>category</code>),<br />
KEY <code>depth</code> (<code>depth</code>),<br />
KEY <code>main_id</code> (<code>main_id</code>)<br />
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ;</p>
<p dir="auto">Thank you in advance.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14537/why-is-depth-highlighted-in-an-sql-file</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 02:55:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14537.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Sep 2017 17:53:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Why is &quot;depth&quot; highlighted in an *.sql file? on Thu, 28 Sep 2017 13:05:03 GMT]]></title><description><![CDATA[<p dir="auto">MAPJe71, Scott Sumner;</p>
<p dir="auto">Thank you for responding to my question. I appreciate the help.</p>
<p dir="auto">I think it would be a good idea for me to change the column name to a different name.</p>
<p dir="auto">Thanks again. : )</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27029</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27029</guid><dc:creator><![CDATA[Pete Norris]]></dc:creator><pubDate>Thu, 28 Sep 2017 13:05:03 GMT</pubDate></item><item><title><![CDATA[Reply to Why is &quot;depth&quot; highlighted in an *.sql file? on Wed, 27 Sep 2017 18:09:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pete-norris" aria-label="Profile: Pete-Norris">@<bdi>Pete-Norris</bdi></a></p>
<blockquote>
<p dir="auto">Why is the word “depth” highlighted in an .sql file?</p>
</blockquote>
<p dir="auto">I don’t know the answer to <em>why?</em> , but you can delete it from the appropriate place in <strong>langs.xml</strong> (under the “sql” language) and then it will no longer be specially highlighted in bold blue for you.</p>
<p dir="auto">This thread will tell you about how to post a screenshot here:  <a href="https://notepad-plus-plus.org/community/topic/14262/how-to-markdown-code-on-this-forum" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/14262/how-to-markdown-code-on-this-forum</a></p>
<p dir="auto">If this (or <em>ANY</em> posting on the <strong>Notepad++ Community</strong> site) is useful, don’t reply with a <em>“thanks”</em>, simply <strong>up-vote</strong> ( click the <code>^</code> in the <code>^ 0 v</code> area on the right ).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27021</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27021</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 27 Sep 2017 18:09:38 GMT</pubDate></item><item><title><![CDATA[Reply to Why is &quot;depth&quot; highlighted in an *.sql file? on Wed, 27 Sep 2017 18:09:05 GMT]]></title><description><![CDATA[<p dir="auto">It appears to be a reserved word in SQL-99 (see <a href="https://www.postgresql.org/docs/8.1/static/sql-keywords-appendix.html" rel="nofollow ugc">here</a> and <a href="http://developer.mimer.se/validator/sql-reserved-words.tml" rel="nofollow ugc">here</a>).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27020</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27020</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Wed, 27 Sep 2017 18:09:05 GMT</pubDate></item></channel></rss>