一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

Haroopad中文乱码不支持中文问题解决办法

时间:2016-04-19 编辑:简简单单 来源:一聚教程网

 安装Haroopad之后发现编辑器中输入的中文字体看不到,而右边的预览框中显示正常,真的是让人头大.最后在网上找到了解决办法:

 

在“文件”下打开“偏好设置”,选择编辑器,找到默认主题,点击编辑,如图:

 

点击查看原图

可以看到default.css文件,修改成如下,字体可以根据自己喜欢修改,重新启动软件即可

/**
  You can only use the following style.

  - color, font-family, font-style
  - text-shadow
  - background-*

  Example:
    font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
    text-shadow: 0 1px rgba(0, 0, 0, .8);
    background-image: url('wood.jpg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
*/

editor {
  font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
}
linenumber {
  font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
}
activeline {
  font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
}

/*
  You can only use the following style.

  - color, font-family, font-style
  - text-shadow

  Example:
    color: #adadad;
    font-style: bold;
    text-shadow: 0 1px rgba(0, 0, 0, .8);
*/
header {}
code {}
blockquote {}
li1 {}
li2 {}
li3 {}
hr {}
img {}
a {}
em {}
i {}
strong {}

重启好了,现在可以在编辑区输入中文了,问题解决.

热门栏目