A tag that includes questions about programming in general.
Questions tagged [code]
183 questions
19
votes
5 answers
Reasons not to assume device MAC address is unique
In a scenario where you control the provisioning of the hardware and can determine that all devices with the same hardware model do indeed have unique MAC addresses for their networking interfaces, are there any downsides to writing code that uses…
Matt Phillips
- 313
18
votes
6 answers
Is there any useful style of MS Word for code?
I need to use MS Word to make some documentation for Python code.
Line number, or boxing around the code, or anything would be better than just use normal format.
Is there any good/useful style/method for code documentation purposes?
prosseek
- 6,054
10
votes
1 answer
What scripting/programming languages are default on Mac OSX?
I was wondering what programming or scripting languages come pre-installed on OSX? Particularly programs that can be run from the command line.
I'm planning on parsing some CSS, and outputting an html page. I've done it in python before, but I would…
JKirchartz
- 350
10
votes
5 answers
Adding programming code into LaTex / LyX
Maybe I'm just being thick, but I can't find any sensible way to simply paste in my (python) code into latex without losing all the indent information (kinda important for python).
Anyone got any bright ideas? I'm not worried about syntax…
Andrew Bolster
- 1,458
9
votes
1 answer
Correct indentation for selected code with BBEdit
Can I correct the indention of selected code (not my whole page) with BBEdit?
So if I had this:
It colud become this:
…
Evanss
- 1,358
9
votes
1 answer
Why did this WhatsApp message freeze my phone?
Warning☠
If you touch this box, [ …
DGC
- 101
8
votes
2 answers
Go to definition of a C function in a different file in Notepad++
While editing a C project on Notepad++ 5.6.7 (Unicode) with the SourceCookifier plugin, I can press Ctrl+Shift+Enter to go to the definition of a function which the cursor is on, but only if it is in the same file.
How can I go to its definition if…
Gnubie
- 2,943
7
votes
2 answers
What is the shortcut to select everything between curly braces in Notepad++?
Is there any shortcut in Notepad++ to select all (highlight) codes between the curly braces (start & end)?
E.g. Code between if-else, nethod definition, while, for loop etc.
Jenson M John
- 203
7
votes
3 answers
How to recover unsaved file within Visual Studio Code?
VS Code crashed without saving - how do I get back the code contents?
I've already checked, but didn't find the file:
%AppData%\Code\Backups
Aknoks
- 81
6
votes
2 answers
How do I create a Code Snippet in MS Teams using a Keyboard Shortcut
In MS Teams, it is common to need to share code snippets quickly. Is there a keyboard shortcut that displays the code snippet editor?
dmcgill50
- 1,152
6
votes
1 answer
Code signing issues
I have purchased a certificate from godaddy, which is now in .pfx format. I tried to convert it into .cer using Internet Explorer and Firefox. I tried to to sign midlet using converted .cer, but I get following error message:
The KeyStore does not…
Jigar Joshi
- 419
4
votes
0 answers
How do I enable scrolling in the integrated terminal in Visual Studio Code?
I'm trying to scroll with the integrated terminal and I'm getting a series of weird text that's showing up, like ^[[<64;57;24M]] and it's not scrolling.
I'm on the most up to date mac with the most up to date vs code.
Where can I enable scrolling…
Cauder
- 974
4
votes
1 answer
How can I format selected java code in sublime text .txt file?
Is there any extension or technique for formatting java code in sublime text?
For example,
I have this code:
static void test()
{
Pair[] intPairArr = new Pair[10]; // error
…
my-lord
- 267
4
votes
1 answer
How to replace character "-" by "%_%" in a batch file?
set var=this-is-a-test
ECHO I would like to convert the value of this variable to "this%_%is%_%a%_%test"
I tried with:
SET VAR=%VAR:-=%_%%
But doesn't work :(
Please help
David
- 41
3
votes
2 answers
Syntax highlighting for emails
I'm once in a while sending raw code to customers. Is there a tool which adds (inline) styles to code, so that it is easier to read for my customers? A tool which works for gmail and other web-based (html) email clients would be great, but I would…