CBEnhancer sample results
Link added for Donation / Standard Edition
public MainPage() {
InitializeComponent();
//the service was bound via local webserver - ensure that we call the correct one
//this is allways a good idea - since it is possible that the control runs on a different host
Uri BaseUri =
Application.Current.Host.Source;
//get the uri of the source http://some.domain.from/ClientBin...
m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf(
"/ClientBin") + 1);
// search for client bin - and use the text before (+1 to keep the /)
//and build an endpointaddress
m_epaServiceAddress =
new EndpointAddress(m_strWebBaseAddress +
"Services/TwitterCache.svc");
// build the service URI http://some.domain.from/ + Servicename
m_dT =
new DispatcherTimer();
m_dT.Interval =
TimeSpan.FromMinutes(1);
//m_dT.Interval = TimeSpan.FromSeconds(10);
m_dT.Tick +=
new EventHandler(m_dT_Tick);
}
Snippet created with CBEnhancer
LUA code from scintilla (the code is from an addon I wrote)
--handling menu enter
local function Menu_OnEnter(b)
leaving = false
otF:SetScript("OnUpdate",nil)
if( b.EType )then
highlight:SetAllPoints(b)
if( b.EType~="HL" and b.EType~="INF")then highlight:SetAlpha(1) end
end
end
XML from Notepad++
<tools name="MainToolbar" enabled="true">
<tool name="ModuleManager" />
<tool name="Bold" Shortcut="Ctrl+B"/>
<tool name="Italic" Shortcut="Ctrl+I"/>
A snippet from IE8 Developer tools
<title>Microsoft ASM interview question? - Stack Overflow</title>
<link rel="stylesheet" href="http://sstatic.net/so/all.css?v=4372">
<link rel="shortcut icon" href="http://sstatic.net/so/favicon.ico">
<link rel="apple-itouch-icon" href="http://sstatic.net/so/apple-touch-icon.png">
<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="http://sstatic.net/so/opensearch.xml">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://sstatic.net/so/js/master.js?v=4360"></script>
<script type="text/javascript">var imagePath = 'http://sstatic.net/so/img/';</script>
Black Background
CBEnhancer default
public MainPage() {
InitializeComponent();
//the service was bound via local webserver - ensure that we call the correct one
//this is allways a good idea - since it is possible that the control runs on a different host
Uri BaseUri = Application.Current.Host.Source; //get the uri of the source http://some.domain.from/ClientBin...
m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf("/ClientBin") + 1); // search for client bin - and use the text before (+1 to keep the /)
//and build an endpointaddress
m_epaServiceAddress = new EndpointAddress(m_strWebBaseAddress + "Services/TwitterCache.svc"); // build the service URI http://some.domain.from/ + Servicename
m_dT = new DispatcherTimer();
m_dT.Interval = TimeSpan.FromMinutes(1);
//m_dT.Interval = TimeSpan.FromSeconds(10);
m_dT.Tick += new EventHandler(m_dT_Tick);
}
CBEnhancer changed settings for this
public MainPage() {
InitializeComponent();
//the service was bound via local webserver - ensure that we call the correct one
//this is allways a good idea - since it is possible that the control runs on a different host
Uri BaseUri = Application.Current.Host.Source; //get the uri of the source http://some.domain.from/ClientBin...
m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf("/ClientBin") + 1); // search for client bin - and use the text before (+1 to keep the /)
//and build an endpointaddress
m_epaServiceAddress = new EndpointAddress(m_strWebBaseAddress + "Services/TwitterCache.svc"); // build the service URI http://some.domain.from/ + Servicename
m_dT = new DispatcherTimer();
m_dT.Interval = TimeSpan.FromMinutes(1);
//m_dT.Interval = TimeSpan.FromSeconds(10);
m_dT.Tick += new EventHandler(m_dT_Tick);
}
Linenumbers
Simple
00 public MainPage() {
01 InitializeComponent();
02 //the service was bound via local webserver - ensure that we call the correct one
03 //this is allways a good idea - since it is possible that the control runs on a different host
04 Uri BaseUri = Application.Current.Host.Source; //get the uri of the source http://some.domain.from/ClientBin...
05 m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf("/ClientBin") + 1); // search for client bin - and use the text before (+1 to keep the /)
06 //and build an endpointaddress
07 m_epaServiceAddress = new EndpointAddress(m_strWebBaseAddress + "Services/TwitterCache.svc"); // build the service URI http://some.domain.from/ + Servicename
08 m_dT = new DispatcherTimer();
09 m_dT.Interval = TimeSpan.FromMinutes(1);
10 //m_dT.Interval = TimeSpan.FromSeconds(10);
11 m_dT.Tick += new EventHandler(m_dT_Tick);
12 }
Configured a bit more
00 public MainPage() {
01 InitializeComponent();
02 //the service was bound via local webserver - ensure that we call the correct one
03 //this is allways a good idea - since it is possible that the control runs on a different host
04 Uri BaseUri = Application.Current.Host.Source; //get the uri of the source http://some.domain.from/ClientBin...
05 m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf("/ClientBin") + 1); // search for client bin - and use the text before (+1 to keep the /)
06 //and build an endpointaddress
07 m_epaServiceAddress = new EndpointAddress(m_strWebBaseAddress + "Services/TwitterCache.svc"); // build the service URI http://some.domain.from/ + Servicename
08 m_dT = new DispatcherTimer();
09 m_dT.Interval = TimeSpan.FromMinutes(1);
10 //m_dT.Interval = TimeSpan.FromSeconds(10);
11 m_dT.Tick += new EventHandler(m_dT_Tick);
12 }
Formatting
Width 200 - Height 200
public MainPage() {
InitializeComponent();
//the service was bound via local webserver - ensure that we call the correct one
//this is allways a good idea - since it is possible that the control runs on a different host
Uri BaseUri = Application.Current.Host.Source; //get the uri of the source http://some.domain.from/ClientBin...
m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf("/ClientBin") + 1); // search for client bin - and use the text before (+1 to keep the /)
//and build an endpointaddress
m_epaServiceAddress = new EndpointAddress(m_strWebBaseAddress + "Services/TwitterCache.svc"); // build the service URI http://some.domain.from/ + Servicename
m_dT = new DispatcherTimer();
m_dT.Interval = TimeSpan.FromMinutes(1);
//m_dT.Interval = TimeSpan.FromSeconds(10);
m_dT.Tick += new EventHandler(m_dT_Tick);
}
Background, padding, foreground, bold...
public MainPage() {
InitializeComponent();
//the service was bound via local webserver - ensure that we call the correct one
//this is allways a good idea - since it is possible that the control runs on a different host
Uri BaseUri = Application.Current.Host.Source; //get the uri of the source http://some.domain.from/ClientBin...
m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf("/ClientBin") + 1); // search for client bin - and use the text before (+1 to keep the /)
//and build an endpointaddress
m_epaServiceAddress = new EndpointAddress(m_strWebBaseAddress + "Services/TwitterCache.svc"); // build the service URI http://some.domain.from/ + Servicename
m_dT = new DispatcherTimer();
m_dT.Interval = TimeSpan.FromMinutes(1);
//m_dT.Interval = TimeSpan.FromSeconds(10);
m_dT.Tick += new EventHandler(m_dT_Tick);
}
Very small font larger width (no scroll)
public MainPage() {
InitializeComponent();
//the service was bound via local webserver - ensure that we call the correct one
//this is allways a good idea - since it is possible that the control runs on a different host
Uri BaseUri = Application.Current.Host.Source; //get the uri of the source http://some.domain.from/ClientBin...
m_strWebBaseAddress = BaseUri.AbsoluteUri.Substring(0, BaseUri.AbsoluteUri.IndexOf("/ClientBin") + 1); // search for client bin - and use the text before (+1 to keep the /)
//and build an endpointaddress
m_epaServiceAddress = new EndpointAddress(m_strWebBaseAddress + "Services/TwitterCache.svc"); // build the service URI http://some.domain.from/ + Servicename
m_dT = new DispatcherTimer();
m_dT.Interval = TimeSpan.FromMinutes(1);
//m_dT.Interval = TimeSpan.FromSeconds(10);
m_dT.Tick += new EventHandler(m_dT_Tick);
}
Last not least - small inline without border
public partial class ManniAT1 : System.Web.UI.MasterPage {
protected void Page_Load(object sender, EventArgs e) {
}
protected void rmMainAno_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e) {
e.Item.Target = ((SiteMapNode)e.Item.DataItem)["target"];
}
}