ContentIsKing

rated
3
Submitted by user1546

Theme highlights the "content" (strings, numbers, identifiers, operators) with brighter thematically-grouped shades of colors and gradually blends the rest of supporting cast (keywords, types, punctuation, comments) into the background using progressively darker, grayer shades.

Numbers are red. The often-small numbers are easy to miss while scanning the code, and red helps find them.
Strings of all kinds are gentile green - makes it easier on the eyes to read avalanche of text and reminds of old "green screens"
Types of various kinds are shades of blue; lighter blue for "flexible" ones and darker for less flexible builtins.
Operators are purposefully subdued yellow to make them (usually one character surrounded my mass of text) stand out. In a way, they are miniature control flow and need to be noticed.
Everything else is a "drab" color ever-slightly different from the background.

As a result, the "juice," the "important stuff" in the code stands out and is easy to pick up while looking at the river of code.

Please, go and change the default font after importing this theme, as it does not prescribe either the typeface or the size. As a result, you get Courier New in size 10. I suggest DejaVu Sans Mono in 11 or 12.

Do you like it? Hot or not

for
We're using the default font. Log in to change your preferred font


C# code

#region Studio Style
class Program : IThemeable
{
    static int _I = 1;
    delegate void DoSomething();

    /// <summary>
    /// The quick brown fox jumps over the lazy dog
    /// THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
    /// </summary>
    static void Main(string[] args)
    {
        string normalStr = "The time now is approximately " + DateTime.Now;
        Uri Illegal1Uri = new Uri("http://packmyboxwith/jugs.html?q=five-dozen&t=liquor");
        Regex OperatorRegex = new Regex(@"\S#$", RegexOptions.IgnorePatternWhitespace);

        for (int O = 0; O < 123456789; O++)
        {
            _I += (O % 3) * ((O / 1) ^ 2) - 5;
            if (!OperatorRegex.IsMatch(Illegal1Uri.ToString()))
            {
                // no idea what this does!?
                Console.WriteLine(Illegal1Uri + normalStr);

            }
        }
    }
}
#endregion

Advanced highlighting

public class Highlighting {
    string inactiveSelection = "select this";
    string highlightedRef;

    Collapsed text

public void CollapsibleRegion() { string warning = "assigned but not used"; }
public void Features() { highlightedRef = "again";
var break = "breakpoint";
SyntaxError(); CompilerError(); #if UNDEFINED_SYMBOL object excludedCode = null; #endif break = "current statement"; // current line (active) // current line (inactive) } }

HTML / ASP.NET (with CSS and Javascript)

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<Person>>" %>
<!DOCTYPE html>
<html>
<head>
    <title>Studio Style ASP.NET</title>
    <style type="text/css">
    .people {
        font-family: 'Arial Narrow';
        font-size: 100% !important; /* comment */
    }
    </style>
</head>
<body>
    <h1>A test page</h1>
    <!-- list of people -->
    <ul class="people">
    <% foreach(Person person in Model) { %>
        <li>
            <%: person.Name %> &gt; (<%: Html.ActionLink("edit", "Edit", new { id = 1 }) %>)
        </li>
    <% } %>
    </ul>

    <script type="text/javascript">
        // TODO: use jQuery instead
        window.onload = function() {
            for(var i = 0; i < 23; i++) {
                alert("Hello");
            }
        }
    </script>
</body>
</html>

Razor (ASP.NET view engine)

@model List<Person>

@{
    ViewBag.Title = "Razor";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1>Razor</h1>
<ul class="people">
@foreach(Person person in Model) {
    <li>
        @person.Name &gt; (@Html.ActionLink("edit", "Edit", new { id = 1 }))
    </li>
}
</ul>

XML

<?xml version="1.0" encoding="utf-8" ?>
<!-- this is an example XML file -->
<people xmlns:x="http://studiostyles.info">
  <person name="Jim Jones" ID="27">
    <email html="yes">jim@example.invalid</email>
    <address>
      <post>123 Example St, &#160;South Brisbane</post>
      <city>Brisbane</city>
    </address>
    <x:comments>
    <![CDATA[ See? Data. Don't worry about this <tag>. ]]>
    </x:comments>
  </person>
</people>

XAML

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="100" Width="300">
    <Grid>
        <!-- A comment -->
        <StackPanel HorizontalAlignment="Left">
            <Button Click="Clicked">A button</Button>
            <StackPanel.Resources>
                <Style TargetType="{x:Type Button}">
                    <Setter
                         Property="Rectangle.Stroke"
                         Value="{DynamicResource {x:Static SystemColors.ControlBrush}}" />
                </Style>
            </StackPanel.Resources>
        </StackPanel>
        <x:Code>
            <![CDATA[
            void Clicked(object sender, RoutedEventArgs e) {
                ((Button)sender).Content = "Hello World";
            }
            ]]>
        </x:Code>
    </Grid>
</Window>