Question: I have a WebBrowser control in my Windows form application to display XML files. I am using web browser control so that I get the auto-formatting that web browser provides for my XML file, along with all other benefits of a web browser.

Now the problem is, the WebBrowser by default displays the background color in white when I open the XML file. I like to change it to another color, light blue. How to do this?

I tried some approaches like:

```
webBrowser.Document.Body.SetAttribute("bgcolor", "#738A9C");

webBrowser.DocumentText = "<html><body style='background-color:Blue'></body></html>";

```

But din't help. Any way to achieve this through CSS or XSLT or something?

![enter image description here](https://i.stack.imgur.com/DWqnb.jpg)

Answer: 
Probably awk is the most straight-forward approach: 

```
awk -F: -v RS=',' '$1==65{print $2}' <<< "$var"
3.0

```

Or to get the pair:

```
$ awk -F: -v RS=',' '$1==65' <<< "$var"
65:3.0

```
Using `sed`

```
sed -e 's/^.*,\(65:[0-9.]*\),.*$/\1/' <<<",$var,"

```

**output:**

```
65:3.0

```

There are two different ways to protect against `65:3.0` being the **first-in-line** or **last-in-line**. Above, `commas` are added to surround the variable providing for an occurrence regardless. Below, the Gnu extension `\?` is used to specify **zero-or-one** occurrence.

```
sed -e 's/^.*,\?\(65:[0-9.]*\),\?.*$/\1/' <<<$var

```

Both handle `65:3.0` regardless of where it appears in the string.