CodePad | Set Default Language to JavaScript

1
2
// ==UserScript==
// @name CodePad | Set Default Language to JavaScript
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[Tampermonkey Extension] When creating a new CodePad snippet, the default language will be set to 'JavaScript'.

4 Responses

Very useful! Do you have other interesting hacks related to Codepad?
@Avan C. Sadly no, any ideas? The other idea I had I could not do it myself, so I send a Feedback to Codepad.
You could actually gt rid of the first line. That's only visual as far as I can tell :)
1
2
(function(){
document.getElementById("snippet_type_id-193").checked=true;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.