Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Feature Request Automaticaly add Script tag also link tag for external libraries like for jquery,Bootstrap or our own external css/js etc #11015

Open
core-ai-bot opened this issue Aug 30, 2021 · 6 comments

Comments

@core-ai-bot
Copy link
Member

Issue by MandarSant
Sunday Nov 27, 2016 at 10:59 GMT
Originally opened as adobe/brackets#12947


I am requesting for feature that whenever we download external libraries like jquey,bootstrap and etc....
we have to add script and also link tag to html so when we download it the script should automaticaly generated insted of typing for save time same feature can work for external our own css/javascript and also same for cdn link insted of copy paste the tag will be auto generated

i am just a beginer so i cant create a screen shot

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Sunday Nov 27, 2016 at 22:54 GMT


How will Brackets know that you downloaded a script?
How will Brackets figure out into which html the script should be inserted?

@core-ai-bot
Copy link
Member Author

Comment by MandarSant
Monday Nov 28, 2016 at 05:43 GMT


@zaggino in our project folder what or which ever css or js file if present in folder will be linked and in case of buld systems like grunt & gulp there will be settings in .json file

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Monday Nov 28, 2016 at 05:49 GMT


that's too specific to be considered as an editor feature, but you could write it as an extension for brackets if you need it

@core-ai-bot
Copy link
Member Author

Comment by MandarSant
Monday Nov 28, 2016 at 05:51 GMT


@zaggino it can be also done by just draging file from project view in the head tag and link or script tag with attr will be generated

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Monday Nov 28, 2016 at 06:03 GMT


again, it's too difficult to get it right, there're hundreds of frameworks, build systems, etc
the editor would have to know exactly what your setup is to get it right and the amount of effort doesn't seem to satisfy saving to write a line of code

@core-ai-bot
Copy link
Member Author

Comment by pelatx
Monday Dec 19, 2016 at 16:10 GMT


@MandarSant I've made an extension that has some of the functionality you want. You must have downloaded the files, or created in your project. But then, you just have to right-click on the CSS or Javascript file, select "Link File" and the link is inserted in the focused HTML document with the correct relative path. You may find it useful.

https://github.com/pelatx/brackets-link-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant