如何在 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
how to set unix/bash as default language on notepad++ 6.5.5
提问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.
在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