Skip to content

Add magic strings #664

Description

@koppor

I have following example stence

It uses the pygments library.

aspell complains at pygments, because it does not know it. One option is to add it to the dictionary. However, it could be that it is a typo at another place.

From markdownlint I learned the concept of magic comment sin text files: https://github.com/DavidAnson/markdownlint?tab=readme-ov-file#configuration

<!-- markdownlint-disable-next-line no-space-in-emphasis -->
space * in * emphasis

Maybe, something similar could be implented for aspell?

<!-- aspell-ignore-next-line pygments -->
<!-- aspell-ignore-full-next-line -->

Ignoring lines could also help somehow that source code is spell checked - in the following source code, args is said to be spelled wrong. <!-- aspell-ignore-full-next-lines 7 --> could help here.

    \begin{minted}[linenos=true,escapeinside=||]{java}
public class Hello {
    public static void main (String[] args) {
        System.out.println("Hello World!");
    }
}
\end{minted}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions