Coder Social home page Coder Social logo

Comments (4)

p0358 avatar p0358 commented on September 16, 2024

What's the file extension for this language? I could add it to language mapping directly for everyone.
Don't remember what's the current priority (will need to look into updating this plugin finally), but iirc it was also somehow taking N++'s syntax highlighting language into account. (EDIT: glancing at the code it uses that if it doesn't find a match in extension mapping file) The problem with that is that it supports significantly less languages.
I think what could also be considered is a switch on whether unknown language should be reported to backend as plaintext or directly via extension (which can then be mapped in backend to something else).
Can you clarify what do you mean in the last sentence? If it's file for mapping lexer-detected language into something else statically, then I don't think that's really a good idea. Unless you mean the custom language definitions.

from notepadpp-codestats.

LunaticManiac avatar LunaticManiac commented on September 16, 2024

Hi!

Thanks for your quick feedback.

BaanC uses sometimes .bc files, and sometimes files without file ending. This really sucks, but i can't change it - therefore I would recommend to change it by syntax hightlighting as i enable it anyway.

I mean the custom language definitions.

from notepadpp-codestats.

p0358 avatar p0358 commented on September 16, 2024

I mean the custom language definitions.
But by custom do you mean simply manually selecting language in toolbar -> Language, one of predefined ones? That would explain your quote in the first post:

editor.getLexerLanguage()
'baan'
Or do you mean custom user-defined languages? (toolbar -> Language -> Define your language...) It's also possible to support those.

As for lexer language not being used at all for detection, I've created issue #11

from notepadpp-codestats.

p0358 avatar p0358 commented on September 16, 2024

.bc to BaanC extension mapping was added as of 9f8c450

Detecting language based on selected lexer language rather than just extension is now supported in latest version as well.

from notepadpp-codestats.

Related Issues (20)

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.