For example, I spun up the IIS features on my Win11 machine.

If I use:

<!DOCTYPE html> <html> <body> <% Response.Write("Hello World!<hr>") %> <% Response.Write("Run me!") ' Response.Write("Commented out!") Response.Write("<p>Run me 2!</p>") %> <% LocationPhraseServiceArea = "{This is the value}" %> <% ' <p> ' We provide professional event production and rental services <%= LocationPhraseServiceArea %>. ' what goeth here</p> %> <p> We provide professional event production and rental services <%= LocationPhraseServiceArea %>. what goeth here</p> </body> </html>

… which is the best interpretation I can come up with for your “later in the page content:” code snippet, plus some extra to prove that IIS ASP code is working around it, I get:

936879a3-6453-4907-af76-ca042474ab0d-image.png

The Notepad++ highlighting seems to match what’s displayed when I look at what the server shows – that is, the %> at the end does close the ASP wrapper, and it goes back to being raw HTML, which the browser renders.

So you really need to show

exactly what code you have.
If my “use the </> button” explanation doesn’t make sense to you, then use``` paste your ASP code here ``` for example,``` <% Response.Write("Hello World!<hr>") %> ``` a screenshot of the highlighting in Notepad++ being “wrong” a screenshot of the highlighting in SciTE (and which version of SciTE you are using) being “right”

It needs to be identical code in both Notepad++ and SciTE, so that we’re comparing apples to apples.