How to handle Chinese garbled characters in the Atom editor in Ubuntu

Source: Internet
Author: User
Tags linux mint
Install Atom on Ubuntu14.0464-bit, and enter the following commands on the terminal: 1. $ sudoadd-apt-repositoryppa: webupd8team/atom2. $ sudoapt-getupdate3. $ sudoapt-getinstallatom: 1. install 文 正 and other related Chinese fonts: $ sudoapt-getinstall-

Install Atom on Ubuntu14.04 64-bit machine, and input the following commands on the terminal in sequence:

1. $ sudo add-apt-repository ppa: webupd8team/atom

2. $ sudo apt-get update

3. $ sudo apt-get install atom

Handle Chinese garbled characters:

1. install 文 and other Chinese fonts: $ sudo apt-get install-y ttf-wqy-zenhei fonts-wqy-zenhei ttf-wqy-microhei

2. view the Chinese font of the system: $ fc-list: lang = zh

3. Open Atom:

(1), Edit-> Open Your Config, delete the original content, enter the following content, and save:

"*":
"Exception-reporting ":
UserId: "fe150ae1-7895-9104-88e4-51ddc09f54d7"
Welcome:
ShowOnStartup: false
Core :{}
Editor:
Invisibles :{}
FontFamily: "Ubuntu Mono, DejaVu Sans Mono, wenquanyi, and so on"
FontSize: 15

(2) Edit-> Open Your Stylesheet, delete the original content, enter the following content, and save:

@ Mono-font-family: "Ubuntu Mono", "wenquanyi and other wide and black";/* width font */
@ Font-family: "Ubuntu", "";/* Non-width font */
Html, body, ol, ul, li, h1, h2, h3, h4, h5, h6, div, p, span, pre, section, input, textarea,
Table,. atom-panel,. status-bar,. tree-view,. title,. current-path,. tooltip {
Font-family: @ font-family;
}

. Autocomplete-plus span, code,.-tree-view-,. symbols-view/*,. editor */{
Font-family: @ mono-font-family;
}

Atom-text-editor.editor {
Font-family: @ mono-font-family;
}

.-Tree-view -{
Font-size: 14px;
}

4. Close Atom and open it again.

Installing Atom http://www.linuxidc.com/Linux/2014-05/101501.htm with PPA in Ubuntu

Unofficial Atom editor http://www.linuxidc.com/Linux/2014-05/101505.htm built in Windows

Compile and install the Atom editor http://www.linuxidc.com/Linux/2014-05/101417.htm in Ubuntu

Ubuntu and derivative systems install Atom 0.104.0 http://www.linuxidc.com/Linux/2014-06/103518.htm

Install the Atom text editor http://www.linuxidc.com/Linux/2014-08/105624.htm on Ubuntu/Linux Mint

Github Atom: Click here
Github Atom: Click here

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-09/123613.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.