Sublime Forum

How do I make Spell Check working in pug files?

#1

Hi,

Where can I add the extension .pug to make Spell Check working in Sublime text 3?

Regards & Thanks,
David

0 Likes

#2

you can add , text.pug to the end of the spelling_selector in the settings file.

1 Like

#3

Thanks a lot that was easy! David

0 Likes

#4

Unfortunately it works on the pug code, but not plain text in the pug code like this.

p.font-size-sm.mb-0 Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur.

0 Likes

#5

you can format your code with

```
my code
```
0 Likes

#6

Don’t understand what you mean!

0 Likes

#7

Can you read what you post? Or this is exactly the same code you write?

0 Likes

#8

Even this reply is not clear to me!
What are you trying to say?
My posts are clear enough I think!

0 Likes

#9

please format your codes. no one is able to read it or use it.


0 Likes

#10

You mean using that in all text on a pug page to make the spell check working?

0 Likes

#11

I am sorry to ask this. Do I have to explain what “format” means?

0 Likes

#12

Are you talking about format text like this?

0 Likes

#13

like this How do I make Spell Check working in pug files?

0 Likes

#14

Then I don’t understand what you mean!

0 Likes

#15

Bad. No one can use it or even read it:

public Color[][] smooth(Color[][] image, int neighberhoodSize) { //check precondition assert image != null && image.length > 1 && image[0].length > 1 && ( neighberhoodSize > 0 ) && rectangularMatrix( image ) : "Violation of precondition: smooth"; Color[][] result = new Color[image.length][image[0].length]; for(int row = 0; row < image.length; row++) { for(int col = 0; col < image[0].length; col++) { result[row][col] = aveOfNeighbors(image, row, col, neighberhoodSize); } } return result; }


Good. I can read the following codes and use it to reproduce your problem:

public Color[][] smooth(Color[][] image, int neighberhoodSize)
{   //check precondition
    assert image != null && image.length > 1 && image[0].length > 1
            && ( neighberhoodSize > 0 ) && rectangularMatrix( image )
            : "Violation of precondition: smooth";

    Color[][] result = new Color[image.length][image[0].length];

    for(int row = 0; row < image.length; row++)
    {   for(int col = 0; col < image[0].length; col++)
        {   result[row][col] = aveOfNeighbors(image, row, col, neighberhoodSize);
        }
    }

    return result;
}
0 Likes

#16

OK now I understand what you mean.

  // Item
      .pb-2
        .card.card-curved-body.box-shadow.card-slide.mx-1
          .card-slide-inner
            +image('portfolio/18.jpg', 'Portfolio thumb').card-img
            a(href='#').card-body.text-center
              h3.h5.nav-heading.mt-1.mb-2 Company Branding
              p.font-size-sm.text-muted.mb-1 in Identity Design

.col-md-7.pt-4.pt-md-0.mb-lg-4.pb-lg-2
      h3.h5 Challenge
      p.font-size-sm Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur non numquam eius modi tempora incidunt.
      p.font-size-sm At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae.
      p.font-size-sm.mb-0 Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur.
0 Likes

#17
  • Could you post a screenshot and point out what’s wrong in the screenshot?
  • What’s the spelling_selector you are using now?

The whole pug codes are all under text.pug so I expect it works everywhere in the code.

0 Likes

#18

0 Likes

#19

image

This is not what I mean in How do I make Spell Check working in pug files?.

“to the end” is the very end. Put it out of the ).

0 Likes

#20

Have placed it here:
meta.tag) text.pug",
But that doesn’t change anything.

0 Likes