Vertical red lines
-
Good day,
How do I turn on those useful vertical red lines that - for example - go from the beginning of a DIV to its /DIV or from opening parenthesis to closed parenthesis ?
I am using the Italian version, but I don’t using the English one if I find out how to change. Regards -
I guess you are looking for this
-
@Ekopalypse , Thank you but it doesn’t work. I found it earlier using (I am not sure of the translation into English) Display>Symbols>Identation guides (equivalent to what you showed above), but I only see vertical grey lines, which should turn red if I click, say, at the beginning of an expression, e.g. <div> all the way to </div>. It worked yesterday :-( Thank you, in any case it’s a first step
-
@Valeria-Vernon said in Vertical red lines:
How do I turn on those useful vertical red lines that …
Maybe you mean Fold lines?:
-
@Valeria-Vernon said in Vertical red lines:
@Ekopalypse , Thank you but it doesn’t work. I found it earlier using (I am not sure of the translation into English) Display>Symbols>Identation guides (equivalent to what you showed above), but I only see vertical grey lines, which should turn red if I click, say, at the beginning of an expression, e.g. <div> all the way to </div>. It worked yesterday :-( Thank you, in any case it’s a first step
I had thought of the fold lines (like Alan suggested). But looking at the behavior of the Indentation Guide, I really think that is the feature you want:
- If it’s turned on, and I click before or after the
<script>
tag (in my example), I just see the normal grey dots:
- if it’s turned on, and I click inside the
<script>
or</script>
tag (putting the cursor somewhere, between the<
and>
for either), the brackets turn red, as does the vertical dotted indent line – in my example, the cursor is between the<sc
and theript>
:
- the same will happen if I click immediately before or after the
{
or}
of the javascript function
- the same will happen if I click immediately before or after the
Is this not what happens for you? If not, please show screenshots with your cursor clearly visible, and include your ? > Debug Info… (click on the ? menu, then on the Debug Info… entry, and Copy debug info into clipboard, then paste in your reply).
- If it’s turned on, and I click before or after the
-
@Valeria-Vernon
… or maybe you are not using the default but a different theme? -
@PeterJones said in Vertical red lines:
Is this not what happens for you? If not,
I can’t post images from $work, site is blocked, so try to bear with me. Instead of using 4-space indents, try only using 2-space indents and then clicking between the
<
and>
tags and see if the red line in the editor window still shows. For me, it’s a yellow line (my preferences / theme I’m assuming) but it only shows on the 4-space indents for me:....<data Name='SubjectUserName'> ......<tag> ........<inner> ..........<stuff></stuff> ........</inner> ......</tag> ....</Data>
Clicking in
<data...>
shows the yellow line in the editor
Clicking in<tag...>
does not
Clicking in<inner...>
shows the yellow line in the editorIn all cases the closing tag is highlighted, but it’s only on the 4-space indents that the in-editor vertical line appears.
Note the code-folding highlights appear as expected in all situations.
Cheers.
-
@Michael-Vincent said in Vertical red lines:
it’s only on the 4-space indents that the in-editor vertical line appears.
If you change Settings > Preferences > Language > Tab Settings: HTML > Tab Size from
4
to2
, then the indicators will be every 2 characters instead of every 4 spaces, and even the<tag>
at 6-space indent will show the dotted indicator appropriately.tab size = 4
tab size = 2
-
@Alan-Kilborn , no, not these
-
@PeterJones Neither these. I’ll try to create a couple of images to show what I mean. Please be patient I am a grandma and not very good at using Corel
-
@Valeria-Vernon said in Vertical red lines:
@PeterJones Neither these. I’ll try to create a couple of images to show what I mean. Please be patient I am a grandma and not very good at using Corel
If you are focused on Corel right now, you might not see this in time, but in modern Windows 10, all you need to do is hit the Shift key plus the Windows key plus S (
Shift+Win+S
) to activate Windows’ built-in Snip & Sketch tool: it greys the screen, you then draw a box around the portion of the screen you want to snip, then it puts it into your clipboard; you can then paste right into the Forum editor window, and no need for running Corel, or mspaint, or anything like that. -
@PeterJones said in Vertical red lines:
If you change Settings > Preferences > Language > Tab Settings: HTML > Tab Size from 4 to 2,
That’s why I suspected. I prefer 4 and keep it that way. However, sometimes I get files from others using 2-space indents and then I’m in the position I described, not seeing the 2-space, only 4-space indicators. I suppose I could switch my settings everytime I look at one of those 2-space, non-me-generated files, but then I may forget to switch back. It never really bothers me, just wondering if that may be what the OP is experiencing when he doesn’t see the lines?
Cheers.
-
@PeterJones Thank you, yes I was very concentrated. I know this feature, I usually press “Print” on my keyboard and that’s all and the result is the same as the one you’ve described with Shift+Win+S. But I need the Corel because I must recreate what I mean, Below are four examples opf the feature I mis so much. Of course there con be onl y one at at time on the page:
-
I’m still not sure what’s missing from what I showed with the Indentation Guide:
Maybe my show-whitespace-and-tab was confusing you, so I turned that off for these examples.
Here is the normal indentation guide, without any tag selected. The dotted lines are all grey, as expected:
If I put the cursor in the
<di|v>
, the<
of<div>
and>
of</div>
turn red. Also, the dots for the<div>
indentation turn red. But the other dotted lines stay grey
If I put my cursor immediately right of the
{
inmyFunction
, it highlights the{
and}
in red with white background, and changes the color of the vertical line in the function to redIf that’s not what you want, I don’t know what feature you used to have. Maybe it was a plugin or something, though I haven’t heard of it.
-
@PeterJones That’s it! after pressing repeatedly on that button I finally obtained my vertical red lines! I thank all of you.
-