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

Source: Internet
Author: User

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

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.

Install Atom through PPA in Ubuntu

Unofficial Atom editor in Windows

Compile and install the Atom editor in Ubuntu

Ubuntu and derivative systems install Atom 0.104.0

Install the Atom text editor on Ubuntu/Linux Mint

Github Atom details: click here
Github Atom: click here

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.