Coder Social home page Coder Social logo

nl-syntax-highlighting's People

Contributors

artisticat1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mauriciopiccini

nl-syntax-highlighting's Issues

FR: Global toggle command

It would be great to be able to toggle this globally as it isn't always feasible to add a frontmatter field to turn this on.

FR: Use user colour definitions

By default, it picks the iA colours for this feature. Realistically it should probably use the obsidian --color-* colour definitions which will ensure it stays more in keeping with the user's theme.

Love the plugin by the way!

FR: Allow other languages than english

I am a German guy and I write nearly all of my notes in German. I think it would helpful for a lot of people to be able to switch to the most common languages (using different language models for POS tagging in the background)

Bug: Do not apply to yaml frontmatter or code blocks

Right now, the Natural Language Syntax Highlighting is applied to the yaml frontmatter and code blocks as well, even though those are two areas where users most likely do not want to have NL Highlighting.

edit: also, tags also get highlighted.

Metadata inspired activation

As a user i would like to only enable syntax highlighting on files of my choosing.
I only want my fiction to be highlighted and not my bullet point style note taking notes.

I propose a setting called:

Metadata Only Per File Activation No [ [|||||]-----] Yes
(NL-SYNTAX-HL: "all")

Only files with the correct metadata field will be highlighted (user opt-in)

(i'm willing to work on this)

Bug: Type-error reading `wordsToOverrideDict`

for some reasons, I do not get any highlighting at all. I looked in the console and saw this error:

app.js:1 TypeError: Cannot read properties of undefined (reading 'wordsToOverrideDict')
    at getDecosOnLine (plugin:nl-syntax-highlighting:16511:53)
    at getAllDecosByLine (plugin:nl-syntax-highlighting:16481:21)
    at new import_view.ViewPlugin.fromClass.decorations (plugin:nl-syntax-highlighting:16536:30)
    at e.create (app.js:1:350672)
    at e.update (app.js:1:351102)
    at e.ensureHandlers (app.js:1:378274)
    at e.updatePlugins (app.js:1:443716)
    at e.update (app.js:1:441962)
    at e._dispatch (app.js:1:438758)
    at e.dispatch (app.js:1:440536)

I tried using the plugin with the setting "Words to override" empty and filled with the example entries, in both cases I get the same error above.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.