<?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[stylesheet]]></title><description><![CDATA[<p dir="auto">Bonjour, je debute le code, j’essair de cree un premier site pour decouvrir.<br />
Je bloque deja sur 2 choses:</p>
<ul>
<li>j’ai ecrit doctype mais il ne se mets pas en surbrillance je ne sait pas pourquoi.</li>
<li>je veut relier mon css au html, mais pareil pas de surbrillance et surtout ca ne marche pas.</li>
</ul>
<p dir="auto">Quelqu’un a til le temp de m’aider svp ?<img src="/assets/uploads/files/1660556090490-capture-d-%C3%A9cran-2022-08-15-113008.png" alt="Capture d’écran 2022-08-15 113008.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23378/stylesheet</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 03:47:40 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23378.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Aug 2022 09:35:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to stylesheet on Mon, 15 Aug 2022 15:15:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/g-h2lls" aria-label="Profile: G-H2LLS">@<bdi>G-H2LLS</bdi></a> said in <a href="/post/79165">stylesheet</a>:</p>
<blockquote>
<p dir="auto">thank you for taking the time to answer me, I’m French and I don’t speak English yet</p>
</blockquote>
<p dir="auto">The standard language of this forum is English.  So if you post in your native language, we have to translate your post into our own language, using our browser’s “Translate this page” tool or by pasting the contents of a post into an external translator like <a href="http://translate.google.com" rel="nofollow ugc">translate.google.com</a> or <a href="http://deepl.com" rel="nofollow ugc">deepl.com</a>.  So if you are having trouble understanding our English replies, you can similarly use your browser’s translate function or an external translation site to translate the answer back to French so you can understand it.</p>
<p dir="auto">…</p>
<p dir="auto">La langue standard de ce forum est l’anglais.  Donc, si vous postez dans votre langue maternelle, nous devons traduire votre message dans notre propre langue, en utilisant l’outil “Traduire cette page” de notre navigateur ou en collant le contenu d’un message dans un traducteur externe comme <a href="http://translate.google.com" rel="nofollow ugc">translate.google.com</a> ou <a href="http://deepl.com" rel="nofollow ugc">deepl.com</a>.  Ainsi, si vous avez du mal à comprendre nos réponses en anglais, vous pouvez de la même manière utiliser la fonction de traduction de votre navigateur ou un site de traduction externe pour retraduire la réponse en français afin de la comprendre.</p>
<p dir="auto">Traduit avec <a href="http://www.DeepL.com/Translator" rel="nofollow ugc">www.DeepL.com/Translator</a> (version gratuite)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79167</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79167</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 15 Aug 2022 15:15:29 GMT</pubDate></item><item><title><![CDATA[Reply to stylesheet on Mon, 15 Aug 2022 15:06:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> merci d’avoir pris du temps pour me repondre, je suis Francais et je ne parle pas encore anglais. Merci</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79165</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79165</guid><dc:creator><![CDATA[G H2LLS]]></dc:creator><pubDate>Mon, 15 Aug 2022 15:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to stylesheet on Mon, 15 Aug 2022 13:55:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/79160">stylesheet</a>:</p>
<blockquote>
<p dir="auto">personally, if I were designing the HTML lexer, I would have defined a separate color style for the text of the internals of the &lt;!doctype html&gt;… or at least given it the same style as SGMLDEFAULT…</p>
</blockquote>
<p dir="auto">Actually, it turned out that the authors of Scintilla/Lexilla (the library that Notepad++ uses internally for doing the syntax highlighting) does have a separate style for that.  Oddly, it’s internally called <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/lexilla/include/LexicalStyles.iface#L295" title="I don't know why it's called an ERROR; but I am not an SGML expert" rel="nofollow ugc">SCE_H_SGML_ERROR</a>, which is StyleID=<code>26</code>.</p>
<p dir="auto">So if you want to be able to define the colour used for the <code>doctype html</code> portion of <code>&lt;!doctype html&gt;</code> line, then do the following:</p>
<ol>
<li>Exit all instances of Notepad++</li>
<li>Run one instance of Notepad++</li>
<li>Open the file <code>%Appdata%\Notepad++\stylers.xml</code>
<ul>
<li>if you use a style other than <code>Default (stylers.xml)</code>, then you will want to go into the <code>%AppData%\Notepad++\Themes\</code> directory and edit the XML file for that theme, rather than editing the <code>stylers.xml</code> theme.</li>
</ul>
</li>
<li>look for <code>&lt;LexerType name="html" ...&gt;</code></li>
<li>in that section, add <code>&lt;WordsStyle name="SGML_DOCTYPE_TEXT"     styleID="26" fgColor="FF0000" bgColor="A6CAF0" fontName="" fontStyle="0" fontSize="" /&gt;</code> on the line after <code>&lt;WordsStyle name="SGMLDEFAULT".../&gt;</code></li>
<li>Save</li>
<li>Exit Notepad++</li>
<li>Run Notepad++</li>
<li>Now if you look at your HTML file, it will be highlighted as the following:<br />
<img src="/assets/uploads/files/1660571494403-fc3d9ab5-b59d-47d3-8103-a2348c540285-image.png" alt="fc3d9ab5-b59d-47d3-8103-a2348c540285-image.png" class=" img-fluid img-markdown" />
<ul>
<li>So if you change <strong>Style Configurator &gt; HTML &gt; SGML_DOCTYPE_TEXT</strong> from now on, it will change the highlighting for that</li>
</ul>
</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/79161</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79161</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 15 Aug 2022 13:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to stylesheet on Mon, 15 Aug 2022 13:29:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/g-h2lls" aria-label="Profile: G-H2LLS">@<bdi>G-H2LLS</bdi></a> ,</p>
<p dir="auto">The reason <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> suggested you find another forum is because your phrasing – at least when Chrome auto-translates from your original language into the English that we read the forum  as – makes it sound like you are asking a question about how to make an HTML link to a CSS file.  We are not an HTML help forum, and will not help you with that.</p>
<p dir="auto">However, when I look at your screenshot, and look at the word in your original post that translates into “highlight” in English, I wonder if you’re not asking about why Notepad++'s syntax highlighting isn’t doing what you expect while you are editing your HTML file in Notepad++ – and we can answer that.</p>
<p dir="auto">First, let me number four things in the screenshot:</p>
<p dir="auto"><img src="/assets/uploads/files/1660568990627-61d45931-d0d6-4908-a579-7c656b8147ba-image.png" alt="61d45931-d0d6-4908-a579-7c656b8147ba-image.png" class=" img-fluid img-markdown" /></p>
<ol>
<li>
<p dir="auto">I assume the highlighting of <code>&lt;!doctype html&gt;</code> is what you were referring to when you said “I wrote doctype but it doesn’t highlight”.  If you look inside, you will see that the <code>&lt;!</code> and <code>&gt;</code> <em>are</em> highlighted with light blue background.</p>
<ul>
<li>This is exactly the style defined by the default stylers.xml in the <strong>Style Configurator &gt; HTML &gt; SGMLDEFAULT</strong> foreground (black) and background (light blue):<br />
<img src="/assets/uploads/files/1660569242299-942e4989-66d3-431d-93f3-0ee8c4afa4b7-image.png" alt="942e4989-66d3-431d-93f3-0ee8c4afa4b7-image.png" class=" img-fluid img-markdown" /></li>
<li>The <code>doctype html</code> portion of the HTML doctype identifier gets styled with the <strong>Style Configurator &gt; Global Styles &gt; Default Style &gt; Foreground colour</strong>:<br />
<img src="/assets/uploads/files/1660569437159-74510f46-9203-4a6b-8bed-08448e600694-image.png" alt="74510f46-9203-4a6b-8bed-08448e600694-image.png" class=" img-fluid img-markdown" /> (personally, if I were designing the HTML lexer, I would have defined a separate color style for the text of the internals of the <code>&lt;!doctype html&gt;</code>… or at least given it the same style as SGMLDEFAULT…)</li>
</ul>
</li>
<li>
<p dir="auto">Your <code>&lt;title&gt;...&lt;/title&gt;</code> tag does not have syntax highlighting because you misspelled it as <code>&lt;tittle&gt;</code>.</p>
</li>
<li>
<p dir="auto">You are missing an end-quote on your <code>content="..."</code> attribute</p>
</li>
<li>
<p dir="auto">Because of that missing end-quote, the start of <code>&lt;link rel=</code> will look purple, the color of a quote, because it’s still inside the quote.  Then the <code>styesheet</code> will be black as an unknown attribute of the not-yet-closed <code>&lt;meta ...</code> tag.</p>
</li>
</ol>
<p dir="auto">If you fix your HTML to be valid HTML, then Notepad++ will correctly syntax highlight:<br />
<img src="/assets/uploads/files/1660569868717-5b626ce1-392e-4245-91be-6a535f698618-image.png" alt="5b626ce1-392e-4245-91be-6a535f698618-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So, in the end, the two root causes of your problems:</p>
<ul>
<li>You didn’t understand how Notepad++ highlights the <code>&lt;!DOCTYPE html&gt;</code>, so you thought it wasn’t highlighting it: but it is.</li>
<li>You had mistakes in your HTML.  Notepad++ does its best to syntax highlight HTML, but when there are mistakes in the HTML, it cannot guess what you actually meant, so the highlighting doesn’t make sense.</li>
</ul>
<p dir="auto">In the future, if Notepad++ is not highlighting your HTML correctly, the first thing you should think is “what’s wrong with my HTML”.</p>
<p dir="auto">If you have questions about HTML or CSS, those questions belong in another forum (maybe one of the Stack Exchange family of sites).</p>
<p dir="auto">But if you have questions on the specifics of Notepad++, then you may feel free to ask here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79160</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79160</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 15 Aug 2022 13:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to stylesheet on Mon, 15 Aug 2022 12:02:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> ok désolé, j’ai besoin d’apprendre et je pensai que quelqu’un pourrait m’aider… connaissez vous un site ou je pourrai avoir une réponse ? parce que je suis bloquer et je ne trouve pas mon erreur.<br />
notepad++ prend bien en compte le stylesheet ?<br />
Est-ce mon erreur ou peut être  pas le bon logiciel ?<br />
je n’ai pas encore assez de connaissances.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79157</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79157</guid><dc:creator><![CDATA[G H2LLS]]></dc:creator><pubDate>Mon, 15 Aug 2022 12:02:15 GMT</pubDate></item><item><title><![CDATA[Reply to stylesheet on Mon, 15 Aug 2022 11:47:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/g-h2lls" aria-label="Profile: G-H2LLS">@<bdi>G-H2LLS</bdi></a> said:</p>
<blockquote>
<p dir="auto">Hello, I start the code, I try to create a first site to discover.<br />
I am already stuck on 2 things:</p>
</blockquote>
<blockquote>
<p dir="auto">I wrote doctype but it doesn’t highlight I don’t know why.<br />
I want to link my css to html, but the same does not highlight and above all it does not work.<br />
Does anyone have time to help me please?</p>
</blockquote>
<p dir="auto">See <a href="https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place/1">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79156</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79156</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 15 Aug 2022 11:47:38 GMT</pubDate></item></channel></rss>