Futureglobe / SnipAway_IssueTracker

Public Issue Tracker for SnipAway a highly customizable snippet manager made for developers
https://snipaway.futureglobe.de/
4 stars 1 forks source link

Automatic Programming Language Detection #7

Open Justin99b opened 5 years ago

Justin99b commented 5 years ago

The title actually says it all :)

Futureglobe commented 5 years ago

Hi @Justin99b,

thanks for creating a feature request. Do you have any idea how this recognition is supposed to work? What do you think would be a good solution?

Thanks Your Futureglobe Support Team

Justin99b commented 5 years ago

Take a look at the Sourcecode of Notepad++ it hast that feature :). I can image that this would be pretty hard but I think RegEx would be a good soulution.

For instance In Java you have this Format for classes

package Some.Class.Name; import blabla (Not there everytime but usually there if there is anything declared in the class)

public class Main { } now here is the problem that public class Main all can be something different what makes it difficult to make a perfect RegEx for it.

but you also check the title of the Snip for instance "New Snippet.java"

it realy depends on the Programm language so its not that easy

Here is some more Information: https://github.com/yoeo/guesslang https://github.com/github/linguist https://github.com/blackducksoftware/ohcount

Futureglobe commented 5 years ago

Hi @Justin99b

We will analyse in more detail whether we can realize the functionality you want in our current system. Also thanks for the links we will take a closer look at. Currently we have no intention to implement this function as soon as possible. If there should be such a functionality in the future we will update this issue.

Thank you for your feedback Your Futureglobe Support Team