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

41,734

Solution 1

Format: Unix/OSX

Default language: Shell

Encoding: UTF-8 without BOM

Solution 2

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

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

Share:
41,734
morgan
Author by

morgan

Updated on September 05, 2020

Comments

  • morgan
    morgan over 3 years

    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!

  • Toto
    Toto over 5 years
    That doesn't answer the question, they want to change the default language.
  • Alper t. Turker
    Alper t. Turker over 5 years
    I know that but setting up default language in encoding will not complete the process. you still have to change the Line Break Type to Unix(LF). that is the correct format for Unix/bash as it was asked in the question. if you don't, Unix (or Linux) will give an error for every blank line.