Store userDefineLang_Dockerfile.xml at
%AppData%\Roaming\Notepad++\userDefineLangs\userDefineLang_Dockerfile.xml
and select Language > Dockerfile in Notepad++.
Since Dockerfile has no extension, the style is not automatically applied.
| <?php | |
| /** | |
| * Gist Command - Easy way to embed a gist in Dokuwiki | |
| * Usage: %gist(gist_id)% | |
| * @license Three Clause BSD | |
| * @author Yuvi Panda (http://yuvi.in) | |
| */ | |
| class CommandPluginExtension_gist extends CommandPluginExtension | |
| { |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Node struct { | |
| Value int | |
| } |
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
| <script src="//code.jquery.com/jquery-1.10.2.min.js"></script> | |
| <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> | |
| <script> | |
| var rq = '//api.syfaro.net/server/status'; | |
| var error = 'unknown'; | |
| var classes = { | |
| error: "fa-question", | |
| false: "fa-times", | |
| true: "fa-check", | |
| }; |
| package main | |
| import ( | |
| "log" | |
| "math" | |
| ) | |
| func Round(val float64, roundOn float64, places int ) (newVal float64) { | |
| var round float64 | |
| pow := math.Pow(10, float64(places)) |
Store userDefineLang_Dockerfile.xml at
%AppData%\Roaming\Notepad++\userDefineLangs\userDefineLang_Dockerfile.xml
and select Language > Dockerfile in Notepad++.
Since Dockerfile has no extension, the style is not automatically applied.
It's not immediately obvious how to pull down the code for a PR and test it locally. But it's pretty easy. (This assumes you have a remote for the main repo named upstream.)
Getting the PR code
Make note of the PR number. For example, Rod's latest is PR #37: Psiphon-Labs/psiphon-tunnel-core#37
Fetch the PR's pseudo-branch (or bookmark or rev pointer whatever the word is), and give it a local branch name. Here we'll name it pr37:
$ git fetch upstream pull/37/head:pr37
| package main | |
| import ( | |
| "net/http" | |
| ) | |
| func main() { | |
| finish := make(chan bool) | |
| server8001 := http.NewServeMux() |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
| queryJobs() { | |
| const jobQuery = gql` | |
| query($city: String) { | |
| jobs(city: $city){ | |
| id | |
| title | |
| teaser | |
| imageSmall | |
| published | |
| } |