📄 browserdisplaybinding.cs
字号:
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version value="$version"/>
// </file>
using System;
using System.Drawing;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Internal.Undo;
using System.Drawing.Printing;
using ICSharpCode.Core.Properties;
using ICSharpCode.Core.AddIns.Codons;
using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.SharpDevelop.BrowserDisplayBinding
{
public class BrowserDisplayBinding : IDisplayBinding
{
public bool CanCreateContentForFile(string fileName)
{
return fileName.StartsWith("http") || fileName.StartsWith("ftp");
}
public bool CanCreateContentForLanguage(string language)
{
return false;
}
public IViewContent CreateContentForFile(string fileName)
{
BrowserPane browserPane = new BrowserPane();
browserPane.Load(fileName);
return browserPane;
}
public IViewContent CreateContentForLanguage(string language, string content)
{
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -