When inserting a block of code, several lines, previously copied with CTRL/C, and pasted with CTRL/V, I have do "down" "home" four "space"s, over and over. Please, is there a way to record these keystrokes and re-play them with a single key?  Of course marking up a many lined block of code may be already allowed for, but I could not locate it in the Help. Even so, it would be a useful feature, and is found in emacs and probably other text editors.
4554
How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly &mdash; not escaped or removed &mdash; when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .
81819
I have a windows application running at the backend. I have functions in this applications mapped to hot keys. Like if I put a message box into this function and give hot key as Alt+Ctrl+D. then on pressing Alt, Ctrl and D together the message box comes up. My application is working fine till this point.   Now I want to write a code inside this function so that when I am using another application like notepad, I select a particular line of text and press the hot key Alt + Ctrl + D it is supposed to copy the selected text append it with "_copied" and paste it back to notepad.   Anyone who has tried a similar application please help me with your valuable inputs.
104027
I'm sure if you're reading this question you are already familiar with my love for pgfkeys.  However, it is absolutely impossible to debug: \tracingmacros is a total mess, with every key expanding to dozens of complex internal macros.  I would like to be able to debug it the same way I can debug a program built by hand using \def: watch the keys absorb their arguments, expand their values or execute their code, and proceed to the next key.  I don't care how \pgfk@try or whatever is defined, only that it looks for a key and does or doesn't find it, acting accordingly.  Currently, I debug by intimidation: \tracingmacros=1 and lots of scrolling plus a bit of pattern recognition for the repetitive macro noise.  It's too much to hope that there is some way of coercing pgfkeys into producing nicer output; it would require the author to have hand-coded a selectively populated call stack.  I'm wondering, though, if anyone else familiar with this package could tell me how they figure out what's going on with their keys.  Related:  (by Yossi Farjoun; not coincidentally, this question is also really his, from a recent chat conversation.)
116141
I recently started renting space on a remote server so that I could work on a project. I found that a relatively painless way to access it on a windows machine is through PuTTY. However, there is one thing that has always irked me when using it: for seemingly no reason random characters are sometimes inserted at the cursor.  Most of the time it is just a single tilde, but rarely it spits out what looks like some escape sequence ([[^8 or the like). It will only occur when I am focused on the window, whether I am typing or 20 feet away from the keyboard. If left for long enough, it will spit tildes at random intervals (average is about 1 minute).  Finally, this behavior seems to be inconsistant when running programs such as nano or the mysql interface: in nano, instead of inserting tildes, it will set marks (ctrl-^); in mysql, lines will become un-editable.  My question is this: Has anyone else experienced this sort of behavior in PuTTY? And if so, what can be done to prevent/correct this behavior?
37928
I was trying to put a small line of code in a comment, but I noticed that the multiple spaces in the comment enclosed in backticks(`) were replaced with single ones.  To make it clear, I wrote this as raw data in the comment:  replace("       ", " ")   Note: ^ This is code indented with four spaces    And when I added the comment, it was appearing as this:        The  says:  _italic_ and **bold** text, inline `code in backticks`, and [basic links](http://example.com).   But when the multiple spaces are replaced with single ones, then perhaps, it won't help for code.
73051
Is syntax highlighting only applied to code after the post is posted?  // test code  for (int i = 1; i &lt; 4; i++) {    s = s + "abc" + 'd' }   Also, will the formatted blocks that were shown as being separate after each time I hit Enter be merged?
97785
Note: This question is how to send an Insert keypress to Microsoft Windows running directly on Apple hardware. This is not about how to use Insert in OS X or through OS X to Windows running in a VM. See  or  for non-Windows Q&amp;A's.   Somehow in my code editor and command line I keep toggling the Insert key, but I'm not sure how.  I can toggle it by clicking on OVR/INS in the status bar, but what is the key combo that I'm magically fat fingering?
112748
Could anyone please tell me how to remap my Super(left) key to Ctrl key?  I mean Super(left) should work as Ctrl key.
3941
In Visual Studio, I can cycle through my clipboard history by pressing CTRL+SHIFT+V rather than CTRL+V. I believe it's called a clipboard ring. But that feature doesn't seem to exist outside of Visual Studio, at least not with the same key combination. Is there a key stroke combination built in to windows to do the same, i.e. be able to cycle through your clipboard history while pasting?
57452
Is it possible to make it appear to a system that a key was pressed, for example I need to  make A key be pressed thousands of times, and it is much to time consuming to do it manually, I would like to write something to do it for me, and the only thing I know well enough is Python.  A better way to put it, I need to emulate a key press, I.E. not capture a key press.  More Info (as requested): I am running windows XP and need to send the keys to another application.
117633
I want to get my computer, with ubuntu 16.04, to record every keystroke in every session and store it in a text file. With "every keystroke" I do not mean every keystroke in terminal, because I've already found answers to that, and it's not what I'm looking for.  So, having physical acces to the computer and sudo privileges, is it possible to achieve this? If so, how?
74802
I saw  and it has been something that I myself wanted to know how to do for Emacs. In ReSharper I use CTRL-D for this action. What is the least number of commands to perform this in Emacs?
70327
In the chat, we often use backticks highlight code inside of sentences, exactly like how we do it here.  Unfortunately, it's located peculiarly close to the esc key, which has a nasty effect of clearing the chat input.  Outside of making a userscript, would it be alright to disable that effect so that I (and probably a bunch of others) don't throw my computer out the window when I lose a larger post to a misplaced keystroke?  Note: command+z (OSX) does not undo the delete.
20269
This is not about new macros like \newcommand, \def and others. This is not about autocompletion like using .cwl (in TexStudio) This is also not about using shortcuts for predefined commands that are listed in the shortcuts sections.   It is more closely related to the 3. Though. I want to define shortcuts for commands that are not listed there.  e.g. When I type Ctrl + Shift + B, I want   \begin{bmatrix} \end{bmatrix}   to be inserted just like Ctrl+ Enter inserts \\.
31007
Help!!!  I don't know quite what happened, I was getting frustrated, trying to somehow escape the backticks inside the code formatting. I clicked the edit button too many times, and then the above happened. Perhaps I clicked it to fast, I don't know, but I then got lots of boxes.    Edit:  Based on a test case below, the problem is simply caused by pressing edit while you still have an edit box open. They all go away when you press cancel anywhere once. This makes it much easier to reproduce, and, while not very important, perhaps still something to be fixed.  Note on the pattern:  When you click the first time, you get one box, as normal. When you click again, you get one extra empty box at the top, and another normal box above that. At each click, one empty box is added per existing normal boxes, plus one normal box. What is going on?
92650
Possible Duplicates:           Is it at all possible to have the Tab key insert 4 spaces in the question/answer edit area, instead of moving focus to the next control?  When writing code in questions or answers I could really use such functionality, especially for hierarchically indented code, like this:  codecode codecode      codecode         codecode         codecode     codecode   What I usually do is copy 4 spaces and then paste them over and over again, but using Tab is more natural (I actually do it by mistake quite often).  I think the usage of Tab for moving focus while editing a question/answer is minimal, and its benefits are insignificant versus the benefits of allowing Tabbed code.  A "neater" feature will be to push not 4 spaces but the differences between the next multiple of 4 and the current amount of spaces in the line (e.g. if I pressed once on space and then Tab, the Tab will insert 3 spaces, like "real" tabulation)
78815
Many websites, especially everything involving rich text editing (this site is guilty as well), steal keyboard shortcuts normally used to control Firefox and make them do something else instead. It is totally infuriating when I press something like Cmd-number, Cmd-L, Cmd-T, or Cmd-K and it doesn't do what I want it to. Can I make it stop?  Actually, it would probably be for the best if I could forbid stealing of all Cmd-* shortcuts. I've never seen them used for anything useful. Is it possible?