Comments (4)
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.
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.
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.
.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)
- Notepad++ hangs and then unable to click on notepad++ window anywhere. #4295 HOT 1
- Lexer language not used as fallback after extension detection fails for detecting language HOT 1
- Language detection improvements HOT 1
- Add small built-in auto-updater HOT 1
- Do not show log write error if there is no disk space?
- Some settings probably don't take effect immediately, only after restarting N++
- Failed to create SSL/TLS channel. HOT 16
- Notepad++ freezes when file is synced by pCloud HOT 2
- .phtml files are detected as plain text HOT 4
- Cannot connect to remote server HOT 9
- Question: what is the correct API URL in plugin settings? HOT 2
- So can you PLEASE rebuild it! HOT 6
- Code::Stats Plugin will not uninstall HOT 2
- Save and restore pulses on shutdown
- Code Stats version 1.1.0 - Suggests updating to previous version v1.0.1 HOT 5
- WakaTime Notepad++ Plugin Failure HOT 1
- The remote name could not be resolved: "p0358.cf" HOT 1
- ColdFusion is detected as plain text HOT 2
- Errors popping as I type in files that have extensions that are not supported (eg. .*cmd, *.au3) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notepadpp-codestats.