Atom安装插件的几种方式
GUI安装
- 打开Atom->File->Settings->Install
- 输入你想要安装的插件名/Theme名
命令行安装
- 打开cmd命令行程序
- 切换到.atom/package目录(一般在用户目录下)
- 输入命令apm install package_name,其中package_name是插件的名字
手动安装
手动安装
- 在atom.io网站找到你想要的插件
- 进入插件的github页面
- 克隆仓库到本地
- 将下载的文件拷贝到.atom/package目录
- 在cmd进入插件目录,输入apm install安装
var >>~~hello~~<< = 'hello world' var >>==hello==<< = 'hello world' var >>**hello**<< = 'hello world' var >>++hello++<< = 'hello world'
- import org.apache.commons.codec.digest.DigestUtils;
- import org.apache.commons.io.IOUtils;
-
- import java.io.*;
- import java.math.BigInteger;
- import java.security.MessageDigest;
-
- public class Md5Util {
-
- private static MessageDigest md5;
-
- static {
- try {
- md5 = MessageDigest.getInstance("MD5");
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
-
- public static String getMd5(String string) {
- try {
- byte[] bs = md5.digest(string.getBytes("UTF-8"));
- StringBuilder sb = new StringBuilder(40);
- for (byte x : bs) {
- if ((x & 0xff) >> 4 == 0) {
- sb.append("0").append(Integer.toHexString(x & 0xff));
- } else {
- sb.append(Integer.toHexString(x & 0xff));
- }
- }
- return sb.toString();
- } catch (UnsupportedEncodingException e) {
- throw new RuntimeException(e);
- }
- }