Sublime Forum

Strange line in php tag

#1

There will be a strange line under the PHP opening and closing tag as you can see in the screenshot below:


This happens when I write PHP inside an HTML tag like:
<a href="<?php echo '#'; ?>">Hello</a>
so the strange line will be gone if it’s outside the HTML tag like:
<a href="#"><?php echo 'Hello'; ?></a>

This is a PHP file, what is the underline mean? I don’t think the syntax you can see in the screenshot is wrong?

0 Likes

#2

In your sample, where is the text cursor located when the line is displayed?

Core sublime shows you visually which open tag pairs with which close tag while the cursor is inside one:

image

image

The manner and color by which it does that is dependent on your color scheme and what it sets of tags_options; for example, here it’s set to glow bold stippled_underline:

image

That said, it’s also possible for a third party plugin to be providing you extra hints about things, in which case unrelated to anything something you’ve installed could be highlighting this for you.

0 Likes

#3

The underline you have is an indicator that Sublime is telling you the pair of the tag. I purposely leave the cursor to show you that this is not an indicator. And I don’t have any extension/plugin installed.

0 Likes

#4

Maybe your color scheme just assigns"font_style": "underline"?

0 Likes