atom.io auto create html basic structure
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html.
this would just set the html, head and body tag. created the charset meta, title and link to css file.
I create a lot of html files a day so it would be really helpfull if I know the shortcode or the package which supports this!
atom-editor
add a comment |
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html.
this would just set the html, head and body tag. created the charset meta, title and link to css file.
I create a lot of html files a day so it would be really helpfull if I know the shortcode or the package which supports this!
atom-editor
add a comment |
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html.
this would just set the html, head and body tag. created the charset meta, title and link to css file.
I create a lot of html files a day so it would be really helpfull if I know the shortcode or the package which supports this!
atom-editor
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html.
this would just set the html, head and body tag. created the charset meta, title and link to css file.
I create a lot of html files a day so it would be really helpfull if I know the shortcode or the package which supports this!
atom-editor
atom-editor
asked Feb 18 '16 at 13:52
Merijn dkMerijn dk
7302827
7302827
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You're looking for autocomplete-snippets
.
Simply type html
and press Enter
Here's a terrible GIF to prove it:
wierd. thats not working for me. Ill try to reinstall!
– Merijn dk
Feb 20 '16 at 21:57
indeed works now
– Merijn dk
Feb 23 '16 at 15:04
6
Package works, disabled, restarted, enabled. Plus you need to save the file as HTML or alike, only thenhtml
will trigger. It will not work in a blank document.
– Kai Noack
Oct 13 '16 at 6:43
I have disabled atom's autocomplete-snippets : that program is almost as annoying as that gif :-) . I put alternate answer using a package dedicated to document templates. This lets you have multiple templates for different projects too (e.g., vanilla html, django, etc), and more directly gets at the issue imho.
– neuronet
Oct 16 '17 at 13:30
Thanks. Works perfectly.
– Arslan Ramay
Nov 1 '17 at 10:27
add a comment |
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a file-templates
package:
https://atom.io/packages/file-templates
Here are some basic instructions.
- To install the package:
edit->preferences->install->file-templates
. - To save the template:
packages->new template from this file
. - To open a new file with that template, just hit
ctrl-alt-n
and
select it.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35483313%2fatom-io-auto-create-html-basic-structure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You're looking for autocomplete-snippets
.
Simply type html
and press Enter
Here's a terrible GIF to prove it:
wierd. thats not working for me. Ill try to reinstall!
– Merijn dk
Feb 20 '16 at 21:57
indeed works now
– Merijn dk
Feb 23 '16 at 15:04
6
Package works, disabled, restarted, enabled. Plus you need to save the file as HTML or alike, only thenhtml
will trigger. It will not work in a blank document.
– Kai Noack
Oct 13 '16 at 6:43
I have disabled atom's autocomplete-snippets : that program is almost as annoying as that gif :-) . I put alternate answer using a package dedicated to document templates. This lets you have multiple templates for different projects too (e.g., vanilla html, django, etc), and more directly gets at the issue imho.
– neuronet
Oct 16 '17 at 13:30
Thanks. Works perfectly.
– Arslan Ramay
Nov 1 '17 at 10:27
add a comment |
You're looking for autocomplete-snippets
.
Simply type html
and press Enter
Here's a terrible GIF to prove it:
wierd. thats not working for me. Ill try to reinstall!
– Merijn dk
Feb 20 '16 at 21:57
indeed works now
– Merijn dk
Feb 23 '16 at 15:04
6
Package works, disabled, restarted, enabled. Plus you need to save the file as HTML or alike, only thenhtml
will trigger. It will not work in a blank document.
– Kai Noack
Oct 13 '16 at 6:43
I have disabled atom's autocomplete-snippets : that program is almost as annoying as that gif :-) . I put alternate answer using a package dedicated to document templates. This lets you have multiple templates for different projects too (e.g., vanilla html, django, etc), and more directly gets at the issue imho.
– neuronet
Oct 16 '17 at 13:30
Thanks. Works perfectly.
– Arslan Ramay
Nov 1 '17 at 10:27
add a comment |
You're looking for autocomplete-snippets
.
Simply type html
and press Enter
Here's a terrible GIF to prove it:
You're looking for autocomplete-snippets
.
Simply type html
and press Enter
Here's a terrible GIF to prove it:
edited Feb 18 '16 at 18:49
answered Feb 18 '16 at 18:35
HatchetHatchet
4,04312534
4,04312534
wierd. thats not working for me. Ill try to reinstall!
– Merijn dk
Feb 20 '16 at 21:57
indeed works now
– Merijn dk
Feb 23 '16 at 15:04
6
Package works, disabled, restarted, enabled. Plus you need to save the file as HTML or alike, only thenhtml
will trigger. It will not work in a blank document.
– Kai Noack
Oct 13 '16 at 6:43
I have disabled atom's autocomplete-snippets : that program is almost as annoying as that gif :-) . I put alternate answer using a package dedicated to document templates. This lets you have multiple templates for different projects too (e.g., vanilla html, django, etc), and more directly gets at the issue imho.
– neuronet
Oct 16 '17 at 13:30
Thanks. Works perfectly.
– Arslan Ramay
Nov 1 '17 at 10:27
add a comment |
wierd. thats not working for me. Ill try to reinstall!
– Merijn dk
Feb 20 '16 at 21:57
indeed works now
– Merijn dk
Feb 23 '16 at 15:04
6
Package works, disabled, restarted, enabled. Plus you need to save the file as HTML or alike, only thenhtml
will trigger. It will not work in a blank document.
– Kai Noack
Oct 13 '16 at 6:43
I have disabled atom's autocomplete-snippets : that program is almost as annoying as that gif :-) . I put alternate answer using a package dedicated to document templates. This lets you have multiple templates for different projects too (e.g., vanilla html, django, etc), and more directly gets at the issue imho.
– neuronet
Oct 16 '17 at 13:30
Thanks. Works perfectly.
– Arslan Ramay
Nov 1 '17 at 10:27
wierd. thats not working for me. Ill try to reinstall!
– Merijn dk
Feb 20 '16 at 21:57
wierd. thats not working for me. Ill try to reinstall!
– Merijn dk
Feb 20 '16 at 21:57
indeed works now
– Merijn dk
Feb 23 '16 at 15:04
indeed works now
– Merijn dk
Feb 23 '16 at 15:04
6
6
Package works, disabled, restarted, enabled. Plus you need to save the file as HTML or alike, only then
html
will trigger. It will not work in a blank document.– Kai Noack
Oct 13 '16 at 6:43
Package works, disabled, restarted, enabled. Plus you need to save the file as HTML or alike, only then
html
will trigger. It will not work in a blank document.– Kai Noack
Oct 13 '16 at 6:43
I have disabled atom's autocomplete-snippets : that program is almost as annoying as that gif :-) . I put alternate answer using a package dedicated to document templates. This lets you have multiple templates for different projects too (e.g., vanilla html, django, etc), and more directly gets at the issue imho.
– neuronet
Oct 16 '17 at 13:30
I have disabled atom's autocomplete-snippets : that program is almost as annoying as that gif :-) . I put alternate answer using a package dedicated to document templates. This lets you have multiple templates for different projects too (e.g., vanilla html, django, etc), and more directly gets at the issue imho.
– neuronet
Oct 16 '17 at 13:30
Thanks. Works perfectly.
– Arslan Ramay
Nov 1 '17 at 10:27
Thanks. Works perfectly.
– Arslan Ramay
Nov 1 '17 at 10:27
add a comment |
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a file-templates
package:
https://atom.io/packages/file-templates
Here are some basic instructions.
- To install the package:
edit->preferences->install->file-templates
. - To save the template:
packages->new template from this file
. - To open a new file with that template, just hit
ctrl-alt-n
and
select it.
add a comment |
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a file-templates
package:
https://atom.io/packages/file-templates
Here are some basic instructions.
- To install the package:
edit->preferences->install->file-templates
. - To save the template:
packages->new template from this file
. - To open a new file with that template, just hit
ctrl-alt-n
and
select it.
add a comment |
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a file-templates
package:
https://atom.io/packages/file-templates
Here are some basic instructions.
- To install the package:
edit->preferences->install->file-templates
. - To save the template:
packages->new template from this file
. - To open a new file with that template, just hit
ctrl-alt-n
and
select it.
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a file-templates
package:
https://atom.io/packages/file-templates
Here are some basic instructions.
- To install the package:
edit->preferences->install->file-templates
. - To save the template:
packages->new template from this file
. - To open a new file with that template, just hit
ctrl-alt-n
and
select it.
answered Oct 16 '17 at 13:25
neuronetneuronet
1,91533175
1,91533175
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35483313%2fatom-io-auto-create-html-basic-structure%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown