如何在 notepad++ 6.5.5 上将 unix/bash 设置为默认语言

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22782582/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 00:46:05  来源:igfitidea点击:

how to set unix/bash as default language on notepad++ 6.5.5

bashunixnotepad++default

提问by morgan

when going in settings> preferences> new document, which language should I chose to create Unix scripts (*.sh *.bsh). I know that a solution is to chose the format when saving, but it's kinda annoying... thanks!

当进入设置>首选项>新文档时,我应该选择哪种语言来创建Unix脚本(*.sh *.bsh)。我知道一个解决方案是在保存时选择格式,但这有点烦人...谢谢!

回答by Josh Jolly

Format: Unix/OSX

格式:Unix/OSX

Default language: Shell

默认语言:Shell

Encoding: UTF-8 without BOM

编码:UTF-8 无 BOM

回答by Alper t. Turker

At the bottom of Notepad++-status bar- you will see that 7th and 8th columns are describing the format of the file you are editing. enter image description here

Notepad++-status bar-的底部,您将看到第 7 和第 8 列描述了您正在编辑的文件的格式。 在此处输入图片说明

double click on the 7th one and select "Unix(LF)" for the 8th one Go To: Encoding -> Encode in UTF-8

双击第 7 个并选择“ Unix(LF)”作为第 8 个 Go To: Encoding -> Encode in UTF-8