A
A
alexandrnevajno12017-12-25 08:24:37
NetBeans
alexandrnevajno1, 2017-12-25 08:24:37

Netbeans after interpolation in a selector with a reference to the parent, the SCSS syntax is not highlighted. How to fix? Or how to set up the SCSS Support plugin?

There is this code:

.dis-thing {
    @for $i from 0 through 4 {
        &__text_lvl_#{$i+1} {
            font-size: 26px - 2 * $i;
        }
    }
}

SCSS syntax is not highlighted after it. It's like the plugin is disabled. If I replace & with .dis-thing, then everything works. Here is a screenshot:
17RXD.png
How to fix it?
I tried to download another plugin (not native) for SCSS. This one: plugins.netbeans.org/plugin/34929/scss-support
There is no such problem here. However, there is another. If I open the brackets {} and put the cursor between them and press Enter, then my selector automatically moves 1 tab to the right. Here are the screenshots:
TTZ8E.pngqoKjo.png
How to make it not automatically move?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question