Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/go
File: index.html
<!doctype html>
[0] Fix | Delete
[1] Fix | Delete
<title>CodeMirror: Go mode</title>
[2] Fix | Delete
<meta charset="utf-8"/>
[3] Fix | Delete
<link rel=stylesheet href="../../doc/docs.css">
[4] Fix | Delete
[5] Fix | Delete
<link rel="stylesheet" href="../../lib/codemirror.css">
[6] Fix | Delete
<link rel="stylesheet" href="../../theme/elegant.css">
[7] Fix | Delete
<script src="../../lib/codemirror.js"></script>
[8] Fix | Delete
<script src="../../addon/edit/matchbrackets.js"></script>
[9] Fix | Delete
<script src="go.js"></script>
[10] Fix | Delete
<style>.CodeMirror {border:1px solid #999; background:#ffc}</style>
[11] Fix | Delete
<div id=nav>
[12] Fix | Delete
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
[13] Fix | Delete
[14] Fix | Delete
<ul>
[15] Fix | Delete
<li><a href="../../index.html">Home</a>
[16] Fix | Delete
<li><a href="../../doc/manual.html">Manual</a>
[17] Fix | Delete
<li><a href="https://github.com/codemirror/codemirror">Code</a>
[18] Fix | Delete
</ul>
[19] Fix | Delete
<ul>
[20] Fix | Delete
<li><a href="../index.html">Language modes</a>
[21] Fix | Delete
<li><a class=active href="#">Go</a>
[22] Fix | Delete
</ul>
[23] Fix | Delete
</div>
[24] Fix | Delete
[25] Fix | Delete
<article>
[26] Fix | Delete
<h2>Go mode</h2>
[27] Fix | Delete
<form><textarea id="code" name="code">
[28] Fix | Delete
// Prime Sieve in Go.
[29] Fix | Delete
// Taken from the Go specification.
[30] Fix | Delete
// Copyright © The Go Authors.
[31] Fix | Delete
[32] Fix | Delete
package main
[33] Fix | Delete
[34] Fix | Delete
import "fmt"
[35] Fix | Delete
[36] Fix | Delete
// Send the sequence 2, 3, 4, ... to channel 'ch'.
[37] Fix | Delete
func generate(ch chan&lt;- int) {
[38] Fix | Delete
for i := 2; ; i++ {
[39] Fix | Delete
ch &lt;- i // Send 'i' to channel 'ch'
[40] Fix | Delete
}
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
// Copy the values from channel 'src' to channel 'dst',
[44] Fix | Delete
// removing those divisible by 'prime'.
[45] Fix | Delete
func filter(src &lt;-chan int, dst chan&lt;- int, prime int) {
[46] Fix | Delete
for i := range src { // Loop over values received from 'src'.
[47] Fix | Delete
if i%prime != 0 {
[48] Fix | Delete
dst &lt;- i // Send 'i' to channel 'dst'.
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
// The prime sieve: Daisy-chain filter processes together.
[54] Fix | Delete
func sieve() {
[55] Fix | Delete
ch := make(chan int) // Create a new channel.
[56] Fix | Delete
go generate(ch) // Start generate() as a subprocess.
[57] Fix | Delete
for {
[58] Fix | Delete
prime := &lt;-ch
[59] Fix | Delete
fmt.Print(prime, "\n")
[60] Fix | Delete
ch1 := make(chan int)
[61] Fix | Delete
go filter(ch, ch1, prime)
[62] Fix | Delete
ch = ch1
[63] Fix | Delete
}
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
func main() {
[67] Fix | Delete
sieve()
[68] Fix | Delete
}
[69] Fix | Delete
</textarea></form>
[70] Fix | Delete
[71] Fix | Delete
<script>
[72] Fix | Delete
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
[73] Fix | Delete
theme: "elegant",
[74] Fix | Delete
matchBrackets: true,
[75] Fix | Delete
indentUnit: 8,
[76] Fix | Delete
tabSize: 8,
[77] Fix | Delete
indentWithTabs: true,
[78] Fix | Delete
mode: "text/x-go"
[79] Fix | Delete
});
[80] Fix | Delete
</script>
[81] Fix | Delete
[82] Fix | Delete
<p><strong>MIME type:</strong> <code>text/x-go</code></p>
[83] Fix | Delete
</article>
[84] Fix | Delete
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function