Snippets in VS Code that use text found in the file with a regular expressionHow to make VS Code to treat other file extensions as certain language?How do I search for files in Visual Studio Code?How do I hide certain files from the sidebar in Visual Studio Code?Hide .js.map files in Visual Studio CodeHow can I find file by name in Visual Studio CodeVisual Studio Code - Make Selected Block of Text Uppercase?VS Code - Search for text in all files in a directoryHow do I configure Visual Studio Code to open files always in a new tab?Visual Studio Code Search and Replace with Regular ExpressionsHow to fix this error 'undefined is not an object'?
A Permanent Norse Presence in America
Should I install hardwood flooring or cabinets first?
Drawing a topological "handle" with Tikz
How should I respond when I lied about my education and the company finds out through background check?
Why did the HMS Bounty go back to a time when whales are already rare?
Proof of Lemma: Every nonzero integer can be written as a product of primes
Database accidentally deleted with a bash script
Find last 3 digits of this monster number
About a little hole in Z'ha'dum
What is this type of notehead called?
My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?
Flux received by a negative charge
Is XSS in canonical link possible?
Has Darkwing Duck ever met Scrooge McDuck?
Is there a conventional notation or name for the slip angle?
How to decide convergence of Integrals
Diode in opposite direction?
Have I saved too much for retirement so far?
Difference between -| and |- in TikZ
Is possible to search in vim history?
THT: What is a squared annular “ring”?
Freedom of speech and where it applies
Gibbs free energy in standard state vs. equilibrium
Global amount of publications over time
Snippets in VS Code that use text found in the file with a regular expression
How to make VS Code to treat other file extensions as certain language?How do I search for files in Visual Studio Code?How do I hide certain files from the sidebar in Visual Studio Code?Hide .js.map files in Visual Studio CodeHow can I find file by name in Visual Studio CodeVisual Studio Code - Make Selected Block of Text Uppercase?VS Code - Search for text in all files in a directoryHow do I configure Visual Studio Code to open files always in a new tab?Visual Studio Code Search and Replace with Regular ExpressionsHow to fix this error 'undefined is not an object'?
I have a React Native snippet that is export default connect(mapStateToProps, mapDispatchToProps)($0)
where the cursor appears in the final parens so I can enter the class name.
Assuming I'm always using this snippet in a file that has a class defined in it (class ClassName extends Component {
), is there a way to write the snippet so that it automatically fills in the current ClassName? Using regexp or something, to start.
For example, given this code at the beginning of the file:
import React, Component from "react";
import connect from "react-redux";
class MyClass extends Component {
...
...
When I type, inside that file, my snippet shortcut for what is currently export default connect(mapStateToProps, mapDispatchToProps)($0)
(which gives me that code with the cursor where the $0
is) I want it to instantly get this:
export default connect(mapStateToProps, mapDispatchToProps)(MyClass)
Perhaps it's something like this:
"body": "export default connect(mapStateToProps, mapDispatchToProps)(/class (w+) extends/)"```
visual-studio-code
add a comment |
I have a React Native snippet that is export default connect(mapStateToProps, mapDispatchToProps)($0)
where the cursor appears in the final parens so I can enter the class name.
Assuming I'm always using this snippet in a file that has a class defined in it (class ClassName extends Component {
), is there a way to write the snippet so that it automatically fills in the current ClassName? Using regexp or something, to start.
For example, given this code at the beginning of the file:
import React, Component from "react";
import connect from "react-redux";
class MyClass extends Component {
...
...
When I type, inside that file, my snippet shortcut for what is currently export default connect(mapStateToProps, mapDispatchToProps)($0)
(which gives me that code with the cursor where the $0
is) I want it to instantly get this:
export default connect(mapStateToProps, mapDispatchToProps)(MyClass)
Perhaps it's something like this:
"body": "export default connect(mapStateToProps, mapDispatchToProps)(/class (w+) extends/)"```
visual-studio-code
1
Can you give some example code - although it is rather obvious what you are talking about - before I work on a solution (I don't want to assume the wrong format).
– Mark
Mar 21 at 19:23
add a comment |
I have a React Native snippet that is export default connect(mapStateToProps, mapDispatchToProps)($0)
where the cursor appears in the final parens so I can enter the class name.
Assuming I'm always using this snippet in a file that has a class defined in it (class ClassName extends Component {
), is there a way to write the snippet so that it automatically fills in the current ClassName? Using regexp or something, to start.
For example, given this code at the beginning of the file:
import React, Component from "react";
import connect from "react-redux";
class MyClass extends Component {
...
...
When I type, inside that file, my snippet shortcut for what is currently export default connect(mapStateToProps, mapDispatchToProps)($0)
(which gives me that code with the cursor where the $0
is) I want it to instantly get this:
export default connect(mapStateToProps, mapDispatchToProps)(MyClass)
Perhaps it's something like this:
"body": "export default connect(mapStateToProps, mapDispatchToProps)(/class (w+) extends/)"```
visual-studio-code
I have a React Native snippet that is export default connect(mapStateToProps, mapDispatchToProps)($0)
where the cursor appears in the final parens so I can enter the class name.
Assuming I'm always using this snippet in a file that has a class defined in it (class ClassName extends Component {
), is there a way to write the snippet so that it automatically fills in the current ClassName? Using regexp or something, to start.
For example, given this code at the beginning of the file:
import React, Component from "react";
import connect from "react-redux";
class MyClass extends Component {
...
...
When I type, inside that file, my snippet shortcut for what is currently export default connect(mapStateToProps, mapDispatchToProps)($0)
(which gives me that code with the cursor where the $0
is) I want it to instantly get this:
export default connect(mapStateToProps, mapDispatchToProps)(MyClass)
Perhaps it's something like this:
"body": "export default connect(mapStateToProps, mapDispatchToProps)(/class (w+) extends/)"```
visual-studio-code
visual-studio-code
edited 2 days ago
Mark
14.9k34160
14.9k34160
asked Mar 21 at 13:48
Jonathan TuzmanJonathan Tuzman
529517
529517
1
Can you give some example code - although it is rather obvious what you are talking about - before I work on a solution (I don't want to assume the wrong format).
– Mark
Mar 21 at 19:23
add a comment |
1
Can you give some example code - although it is rather obvious what you are talking about - before I work on a solution (I don't want to assume the wrong format).
– Mark
Mar 21 at 19:23
1
1
Can you give some example code - although it is rather obvious what you are talking about - before I work on a solution (I don't want to assume the wrong format).
– Mark
Mar 21 at 19:23
Can you give some example code - although it is rather obvious what you are talking about - before I work on a solution (I don't want to assume the wrong format).
– Mark
Mar 21 at 19:23
add a comment |
1 Answer
1
active
oldest
votes
You can't put a regular expression into a snippet except to transform one of the built-in variables. If MyClass
was already on the clipboard you could just use $CLIPBOARD
in your snippet:
"body": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
Assuming that you don't to always have the class name always on the clipboard there is another tricky way to find the class name, select it and copy it to the clipboard so it can be used in a snippet as $CLIPBOARD
.
First, you will need a macro extension like multi-command.
Second, this setting in settings.json:
"multiCommand.commands": [
"command": "multiCommand.regexSnippet", // name of the macro to use a keybinding
"interval": 1000, // delay between the following commands, left long to watch it work
// you don't need any interval, that option can be commented out
"sequence": [
// first command, on a blank line type out a regular expression
"command": "type",
"args":
"text": "(?<=class )(.*)(?= extends)"
,
// select and cut that regex
"cursorHomeSelect",
"editor.action.clipboardCutAction",
// now $CLIPBOARD has your class name on it
// open the find widget
"actions.find",
// "toggleFindRegex", // you should have the find regex option already selected
// paste the regex into the find widget
"editor.action.clipboardPasteAction",
// select and copy the match that the regex finds
"editor.action.selectAllMatches",
"editor.action.clipboardCopyAction",
// go back to where you were in the code to insert the snippet
"workbench.action.navigateToLastEditLocation",
"command": "editor.action.insertSnippet",
"args":
// "snippet": "export default $1($2, $3)($CLIPBOARD)",
// use the above if those values are not pre-determined like in your question
"snippet": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
]
],
Third, some keybinding to trigger this macro:
"key": "shift-alt-2",
"command": "multiCommand.regexSnippet"
,
Note: you are triggering a macro, not a snippet - so no intellisense.
Here is a gif with the long interval so you can see the steps in action ("Toggle Screencast Mode" to see the command keys):
A couple of important points:
You can delete or comment out the interval option and it will be instanteous.
The macro assumes you have the find regex option selected already - which I always have it so. Unfortunately, there is a command to toggle the find regex option but none to insure that it is on.
The macro appears huge but it is half explanatory comments.
Obviously, if you have more than the one
class MyClass extends
in the file this macro might not work.You must trigger the macro (with a keybinding of your choice) on a blank line - otherwise the initial selection of the regex will be incorrect.
Let me know if this works for you.
Thank you! Sounds comprehensive, but it's maybe easier to just type in the class name after I activate the snippet. Amazing work!
– Jonathan Tuzman
2 days ago
Yes, this is a proof-of-concept. You can grab text from anywhere in the file (maybe workspace too although I didn't try to do that), go back to where you were and use that text in a snippet. That is pretty powerful and fast. Don't forget to accept and/or upvote the answer if you found it helpful.
– Mark
2 days ago
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%2f55281939%2fsnippets-in-vs-code-that-use-text-found-in-the-file-with-a-regular-expression%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can't put a regular expression into a snippet except to transform one of the built-in variables. If MyClass
was already on the clipboard you could just use $CLIPBOARD
in your snippet:
"body": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
Assuming that you don't to always have the class name always on the clipboard there is another tricky way to find the class name, select it and copy it to the clipboard so it can be used in a snippet as $CLIPBOARD
.
First, you will need a macro extension like multi-command.
Second, this setting in settings.json:
"multiCommand.commands": [
"command": "multiCommand.regexSnippet", // name of the macro to use a keybinding
"interval": 1000, // delay between the following commands, left long to watch it work
// you don't need any interval, that option can be commented out
"sequence": [
// first command, on a blank line type out a regular expression
"command": "type",
"args":
"text": "(?<=class )(.*)(?= extends)"
,
// select and cut that regex
"cursorHomeSelect",
"editor.action.clipboardCutAction",
// now $CLIPBOARD has your class name on it
// open the find widget
"actions.find",
// "toggleFindRegex", // you should have the find regex option already selected
// paste the regex into the find widget
"editor.action.clipboardPasteAction",
// select and copy the match that the regex finds
"editor.action.selectAllMatches",
"editor.action.clipboardCopyAction",
// go back to where you were in the code to insert the snippet
"workbench.action.navigateToLastEditLocation",
"command": "editor.action.insertSnippet",
"args":
// "snippet": "export default $1($2, $3)($CLIPBOARD)",
// use the above if those values are not pre-determined like in your question
"snippet": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
]
],
Third, some keybinding to trigger this macro:
"key": "shift-alt-2",
"command": "multiCommand.regexSnippet"
,
Note: you are triggering a macro, not a snippet - so no intellisense.
Here is a gif with the long interval so you can see the steps in action ("Toggle Screencast Mode" to see the command keys):
A couple of important points:
You can delete or comment out the interval option and it will be instanteous.
The macro assumes you have the find regex option selected already - which I always have it so. Unfortunately, there is a command to toggle the find regex option but none to insure that it is on.
The macro appears huge but it is half explanatory comments.
Obviously, if you have more than the one
class MyClass extends
in the file this macro might not work.You must trigger the macro (with a keybinding of your choice) on a blank line - otherwise the initial selection of the regex will be incorrect.
Let me know if this works for you.
Thank you! Sounds comprehensive, but it's maybe easier to just type in the class name after I activate the snippet. Amazing work!
– Jonathan Tuzman
2 days ago
Yes, this is a proof-of-concept. You can grab text from anywhere in the file (maybe workspace too although I didn't try to do that), go back to where you were and use that text in a snippet. That is pretty powerful and fast. Don't forget to accept and/or upvote the answer if you found it helpful.
– Mark
2 days ago
add a comment |
You can't put a regular expression into a snippet except to transform one of the built-in variables. If MyClass
was already on the clipboard you could just use $CLIPBOARD
in your snippet:
"body": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
Assuming that you don't to always have the class name always on the clipboard there is another tricky way to find the class name, select it and copy it to the clipboard so it can be used in a snippet as $CLIPBOARD
.
First, you will need a macro extension like multi-command.
Second, this setting in settings.json:
"multiCommand.commands": [
"command": "multiCommand.regexSnippet", // name of the macro to use a keybinding
"interval": 1000, // delay between the following commands, left long to watch it work
// you don't need any interval, that option can be commented out
"sequence": [
// first command, on a blank line type out a regular expression
"command": "type",
"args":
"text": "(?<=class )(.*)(?= extends)"
,
// select and cut that regex
"cursorHomeSelect",
"editor.action.clipboardCutAction",
// now $CLIPBOARD has your class name on it
// open the find widget
"actions.find",
// "toggleFindRegex", // you should have the find regex option already selected
// paste the regex into the find widget
"editor.action.clipboardPasteAction",
// select and copy the match that the regex finds
"editor.action.selectAllMatches",
"editor.action.clipboardCopyAction",
// go back to where you were in the code to insert the snippet
"workbench.action.navigateToLastEditLocation",
"command": "editor.action.insertSnippet",
"args":
// "snippet": "export default $1($2, $3)($CLIPBOARD)",
// use the above if those values are not pre-determined like in your question
"snippet": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
]
],
Third, some keybinding to trigger this macro:
"key": "shift-alt-2",
"command": "multiCommand.regexSnippet"
,
Note: you are triggering a macro, not a snippet - so no intellisense.
Here is a gif with the long interval so you can see the steps in action ("Toggle Screencast Mode" to see the command keys):
A couple of important points:
You can delete or comment out the interval option and it will be instanteous.
The macro assumes you have the find regex option selected already - which I always have it so. Unfortunately, there is a command to toggle the find regex option but none to insure that it is on.
The macro appears huge but it is half explanatory comments.
Obviously, if you have more than the one
class MyClass extends
in the file this macro might not work.You must trigger the macro (with a keybinding of your choice) on a blank line - otherwise the initial selection of the regex will be incorrect.
Let me know if this works for you.
Thank you! Sounds comprehensive, but it's maybe easier to just type in the class name after I activate the snippet. Amazing work!
– Jonathan Tuzman
2 days ago
Yes, this is a proof-of-concept. You can grab text from anywhere in the file (maybe workspace too although I didn't try to do that), go back to where you were and use that text in a snippet. That is pretty powerful and fast. Don't forget to accept and/or upvote the answer if you found it helpful.
– Mark
2 days ago
add a comment |
You can't put a regular expression into a snippet except to transform one of the built-in variables. If MyClass
was already on the clipboard you could just use $CLIPBOARD
in your snippet:
"body": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
Assuming that you don't to always have the class name always on the clipboard there is another tricky way to find the class name, select it and copy it to the clipboard so it can be used in a snippet as $CLIPBOARD
.
First, you will need a macro extension like multi-command.
Second, this setting in settings.json:
"multiCommand.commands": [
"command": "multiCommand.regexSnippet", // name of the macro to use a keybinding
"interval": 1000, // delay between the following commands, left long to watch it work
// you don't need any interval, that option can be commented out
"sequence": [
// first command, on a blank line type out a regular expression
"command": "type",
"args":
"text": "(?<=class )(.*)(?= extends)"
,
// select and cut that regex
"cursorHomeSelect",
"editor.action.clipboardCutAction",
// now $CLIPBOARD has your class name on it
// open the find widget
"actions.find",
// "toggleFindRegex", // you should have the find regex option already selected
// paste the regex into the find widget
"editor.action.clipboardPasteAction",
// select and copy the match that the regex finds
"editor.action.selectAllMatches",
"editor.action.clipboardCopyAction",
// go back to where you were in the code to insert the snippet
"workbench.action.navigateToLastEditLocation",
"command": "editor.action.insertSnippet",
"args":
// "snippet": "export default $1($2, $3)($CLIPBOARD)",
// use the above if those values are not pre-determined like in your question
"snippet": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
]
],
Third, some keybinding to trigger this macro:
"key": "shift-alt-2",
"command": "multiCommand.regexSnippet"
,
Note: you are triggering a macro, not a snippet - so no intellisense.
Here is a gif with the long interval so you can see the steps in action ("Toggle Screencast Mode" to see the command keys):
A couple of important points:
You can delete or comment out the interval option and it will be instanteous.
The macro assumes you have the find regex option selected already - which I always have it so. Unfortunately, there is a command to toggle the find regex option but none to insure that it is on.
The macro appears huge but it is half explanatory comments.
Obviously, if you have more than the one
class MyClass extends
in the file this macro might not work.You must trigger the macro (with a keybinding of your choice) on a blank line - otherwise the initial selection of the regex will be incorrect.
Let me know if this works for you.
You can't put a regular expression into a snippet except to transform one of the built-in variables. If MyClass
was already on the clipboard you could just use $CLIPBOARD
in your snippet:
"body": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
Assuming that you don't to always have the class name always on the clipboard there is another tricky way to find the class name, select it and copy it to the clipboard so it can be used in a snippet as $CLIPBOARD
.
First, you will need a macro extension like multi-command.
Second, this setting in settings.json:
"multiCommand.commands": [
"command": "multiCommand.regexSnippet", // name of the macro to use a keybinding
"interval": 1000, // delay between the following commands, left long to watch it work
// you don't need any interval, that option can be commented out
"sequence": [
// first command, on a blank line type out a regular expression
"command": "type",
"args":
"text": "(?<=class )(.*)(?= extends)"
,
// select and cut that regex
"cursorHomeSelect",
"editor.action.clipboardCutAction",
// now $CLIPBOARD has your class name on it
// open the find widget
"actions.find",
// "toggleFindRegex", // you should have the find regex option already selected
// paste the regex into the find widget
"editor.action.clipboardPasteAction",
// select and copy the match that the regex finds
"editor.action.selectAllMatches",
"editor.action.clipboardCopyAction",
// go back to where you were in the code to insert the snippet
"workbench.action.navigateToLastEditLocation",
"command": "editor.action.insertSnippet",
"args":
// "snippet": "export default $1($2, $3)($CLIPBOARD)",
// use the above if those values are not pre-determined like in your question
"snippet": "export default connect(mapStateToProps, mapDispatchToProps)($CLIPBOARD)"
]
],
Third, some keybinding to trigger this macro:
"key": "shift-alt-2",
"command": "multiCommand.regexSnippet"
,
Note: you are triggering a macro, not a snippet - so no intellisense.
Here is a gif with the long interval so you can see the steps in action ("Toggle Screencast Mode" to see the command keys):
A couple of important points:
You can delete or comment out the interval option and it will be instanteous.
The macro assumes you have the find regex option selected already - which I always have it so. Unfortunately, there is a command to toggle the find regex option but none to insure that it is on.
The macro appears huge but it is half explanatory comments.
Obviously, if you have more than the one
class MyClass extends
in the file this macro might not work.You must trigger the macro (with a keybinding of your choice) on a blank line - otherwise the initial selection of the regex will be incorrect.
Let me know if this works for you.
answered 2 days ago
MarkMark
14.9k34160
14.9k34160
Thank you! Sounds comprehensive, but it's maybe easier to just type in the class name after I activate the snippet. Amazing work!
– Jonathan Tuzman
2 days ago
Yes, this is a proof-of-concept. You can grab text from anywhere in the file (maybe workspace too although I didn't try to do that), go back to where you were and use that text in a snippet. That is pretty powerful and fast. Don't forget to accept and/or upvote the answer if you found it helpful.
– Mark
2 days ago
add a comment |
Thank you! Sounds comprehensive, but it's maybe easier to just type in the class name after I activate the snippet. Amazing work!
– Jonathan Tuzman
2 days ago
Yes, this is a proof-of-concept. You can grab text from anywhere in the file (maybe workspace too although I didn't try to do that), go back to where you were and use that text in a snippet. That is pretty powerful and fast. Don't forget to accept and/or upvote the answer if you found it helpful.
– Mark
2 days ago
Thank you! Sounds comprehensive, but it's maybe easier to just type in the class name after I activate the snippet. Amazing work!
– Jonathan Tuzman
2 days ago
Thank you! Sounds comprehensive, but it's maybe easier to just type in the class name after I activate the snippet. Amazing work!
– Jonathan Tuzman
2 days ago
Yes, this is a proof-of-concept. You can grab text from anywhere in the file (maybe workspace too although I didn't try to do that), go back to where you were and use that text in a snippet. That is pretty powerful and fast. Don't forget to accept and/or upvote the answer if you found it helpful.
– Mark
2 days ago
Yes, this is a proof-of-concept. You can grab text from anywhere in the file (maybe workspace too although I didn't try to do that), go back to where you were and use that text in a snippet. That is pretty powerful and fast. Don't forget to accept and/or upvote the answer if you found it helpful.
– Mark
2 days ago
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%2f55281939%2fsnippets-in-vs-code-that-use-text-found-in-the-file-with-a-regular-expression%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
1
Can you give some example code - although it is rather obvious what you are talking about - before I work on a solution (I don't want to assume the wrong format).
– Mark
Mar 21 at 19:23