Argumenty wiersza poleceń#
-l#
Po uruchomieniu programu Notepad++ we wszystkich plikach wskazywanych przez argument filePath lub dla automatycznie wprowadzanego tekstu przez argumenty -qt i -qf użyty zostanie konkretny język (odpowiedzialne m.in. za kolorowanie składni). Argument -l nie ma zastosowania dla pozostałych plików, np. tych odtworzonych z pliku domyślnej sesji.
Opis działania#
Prawidłowe użycie argumentu najlepiej objaśnić na zapisie składniowym:
notepad++ -l<lang> (filePath | -qt<Text> | -qf<ContentFilePath>)
gdzie poszczególne człony oznaczają:
- notepad++ - ścieżka względna lub bezwzględna do pliku wykonywalnego programu Notepad++. Wszystko zależy od sposobu uruchamiania programu NPP, np. z systemowej konsoli, ze skrótu do programu czy z innego programu/skryptu (przykład).
- <lang> - unikatowy identyfikator dla języka, który zostanie użyty we wszystkich plikach wskazanych przez filePath, tekście z <Text> lub pliku z <ContentFilePath>.
- filePath - ścieżka względna lub bezwzględna do pliku lub plików, które użyją języka wskazanego przez <lang>. Znaki wieloznaczności
*i?dla tego argumentu nie są obsługiwane. - <Text> - konkretny tekst, który zostanie automatycznie wprowadzony do Obszaru edycji w nowo otwartej karcie. Ewentualne spacje w tekście należy zastąpić kombinacją
%20. Więcej w opisie argumentu-qt. - <ContentFilePath> - ścieżka względna lub bezwzględna do konkretnego pliku, którego treść zostanie automatycznie wprowadzona do Obszaru edycji w nowo otwartej karcie. Ewentualne spacje w ścieżce należy zastąpić kombinacją
%20. Więcej w opisie argumentu-qf.
Prosty przykład:
notepad++ -lphp change.log
notepad++ -multiInst -lphp change.log
notepad++ -multiInst -lphp change.log license.txt readme.txt
notepad++ -multiInst -lphp change.log themes
notepad++ -multiInst -lphp -qtWyraz
notepad++ -multiInst -lphp -qfchange.log
// Błędne przypadki
notepad++ -multiInst -l
notepad++ -multiInst -lphp
notepad++ -multiInst -lphp c*
notepad++ -multiInst -lphp themesKażde język posiada własny unikatowy identyfikator #. Poniższa tabela zawiera identyfikatory dla wszystkich języków dostępnych w programie Notepad++.
| Język | Pełna etykieta | Identyfikator | Przykład |
|---|---|---|---|
| Normal text | Normal text file | normal | notepad++ -multiInst -lnormal change.log |
| PHP | PHP Hypertext Preprocessor file | php | notepad++ -multiInst -lphp change.log |
| C | C source file | c | notepad++ -multiInst -lc change.log |
| C++ | C++ source file | cpp | notepad++ -multiInst -lcpp change.log |
| C# | C# source file | cs | notepad++ -multiInst -lcs change.log |
| Objective-C | Objective-C source file | objc | notepad++ -multiInst -lobjc change.log |
| Java | Java source file | java | notepad++ -multiInst -ljava change.log |
| RC | Windows Resource file | rc | notepad++ -multiInst -lrc change.log |
| HTML | Hyper Text Markup Language file | html | notepad++ -multiInst -lhtml change.log |
| XML | eXtensible Markup Language file | xml | notepad++ -multiInst -lxml change.log |
| Makefile | Makefile | makefile | notepad++ -multiInst -lmakefile change.log |
| Pascal | Pascal source file | pascal | notepad++ -multiInst -lpascal change.log |
| Batch | Batch file | batch | notepad++ -multiInst -lbatch change.log |
| ini | MS ini file | ini | notepad++ -multiInst -lini change.log |
| NFO | MSDOS Style/ASCII Art | nfo | notepad++ -multiInst -lnfo change.log |
| udf | User Defined language file | udf | notepad++ -multiInst -ludf change.log |
| ASP | Active Server Pages script file | asp | notepad++ -multiInst -lasp change.log |
| SQL | Structured Query Language file | sql | notepad++ -multiInst -lsql change.log |
| Visual Basic | Visual Basic file | vb | notepad++ -multiInst -lvb change.log |
| JavaScript | JavaScript file | javascript | notepad++ -multiInst -ljavascript change.log |
| CSS | Cascade Style Sheets File | css | notepad++ -multiInst -lcss change.log |
| Perl | Perl source file | perl | notepad++ -multiInst -lperl change.log |
| Python | Python file | python | notepad++ -multiInst -lpython change.log |
| Lua | Lua source File | lua | notepad++ -multiInst -llua change.log |
| TeX | TeX file | tex | notepad++ -multiInst -ltex change.log |
| Fortran free form | Fortran free form source file | fortran | notepad++ -multiInst -lfortran change.log |
| Shell | Unix script file | bash | notepad++ -multiInst -lbash change.log |
| ActionScript | Flash ActionScript file | actionscript | notepad++ -multiInst -lactionscript change.log |
| NSIS | Nullsoft Scriptable Install System script file | nsis | notepad++ -multiInst -lnsis change.log |
| TCL | Tool Command Language file | tcl | notepad++ -multiInst -ltcl change.log |
| Lisp | List Processing language file | lisp | notepad++ -multiInst -llisp change.log |
| Scheme | Scheme file | scheme | notepad++ -multiInst -lscheme change.log |
| Assembly | Assembly language source file | asm | notepad++ -multiInst -lasm change.log |
| Diff | Diff file | diff | notepad++ -multiInst -ldiff change.log |
| Properties file | Properties file | props | notepad++ -multiInst -lprops change.log |
| PostScript | PostScript file | postscript | notepad++ -multiInst -lpostscript change.log |
| Ruby | Ruby file | ruby | notepad++ -multiInst -lruby change.log |
| Smalltalk | Smalltalk file | smalltalk | notepad++ -multiInst -lsmalltalk change.log |
| VHDL | VHSIC Hardware Description Language file | vhdl | notepad++ -multiInst -lvhdl change.log |
| KiXtart | KiXtart file | kix | notepad++ -multiInst -lkix change.log |
| AutoIt | AutoIt | autoit | notepad++ -multiInst -lautoit change.log |
| CAML | Categorical Abstract Machine Language | caml | notepad++ -multiInst -lcaml change.log |
| Ada | Ada file | ada | notepad++ -multiInst -lada change.log |
| Verilog | Verilog file | verilog | notepad++ -multiInst -lverilog change.log |
| MATLAB | MATrix LABoratory | matlab | notepad++ -multiInst -lmatlab change.log |
| Haskell | Haskell | haskell | notepad++ -multiInst -lhaskell change.log |
| Inno Setup | Inno Setup script | inno | notepad++ -multiInst -linno change.log |
| Internal Search | Internal Search | searchResult | notepad++ -multiInst -lsearchResult change.log |
| CMake | CMake file | cmake | notepad++ -multiInst -lcmake change.log |
| YAML | YAML Ain't Markup Language | yaml | notepad++ -multiInst -lyaml change.log |
| COBOL | COmmon Business Oriented Language | cobol | notepad++ -multiInst -lcobol change.log |
| Gui4Cli | Gui4Cli file | gui4cli | notepad++ -multiInst -lgui4cli change.log |
| D | D programming language | d | notepad++ -multiInst -ld change.log |
| PowerShell | Windows PowerShell | powershell | notepad++ -multiInst -lpowershell change.log |
| R | R programming language | r | notepad++ -multiInst -lr change.log |
| JSP | JavaServer Pages script file | jsp | notepad++ -multiInst -ljsp change.log |
| CoffeeScript | CoffeeScript file | coffeescript | notepad++ -multiInst -lcoffeescript change.log |
| json | JSON file | json | notepad++ -multiInst -ljson change.log |
| JavaScript | JavaScript file | javascript.js | notepad++ -multiInst -ljavascript.js change.log |
| Fortran fixed form | Fortran fixed form source file | fortran77 | notepad++ -multiInst -lfortran77 change.log |
| BaanC | BaanC File | baanc | notepad++ -multiInst -lbaanc change.log |
| S-Record | Motorola S-Record binary data | srec | notepad++ -multiInst -lsrec change.log |
| Intel HEX | Intel HEX binary data | ihex | notepad++ -multiInst -lihex change.log |
| Tektronix extended HEX | Tektronix extended HEX binary data | tehex | notepad++ -multiInst -ltehex change.log |
| Swift | Swift file | swift | notepad++ -multiInst -lswift change.log |
| ASN.1 | Abstract Syntax Notation One file | asn1 | notepad++ -multiInst -lasn1 change.log |
| AviSynth | AviSynth scripts files | avs | notepad++ -multiInst -lavs change.log |
| BlitzBasic | BlitzBasic file | blitzbasic | notepad++ -multiInst -lblitzbasic change.log |
| PureBasic | PureBasic file | purebasic | notepad++ -multiInst -lpurebasic change.log |
| FreeBasic | FreeBasic file | freebasic | notepad++ -multiInst -lfreebasic change.log |
| Csound | Csound file | csound | notepad++ -multiInst -lcsound change.log |
| Erlang | Erlang file | erlang | notepad++ -multiInst -lerlang change.log |
| ESCRIPT | ESCRIPT file | escript | notepad++ -multiInst -lescript change.log |
| Forth | Forth file | forth | notepad++ -multiInst -lforth change.log |
| LaTeX | LaTeX file | latex | notepad++ -multiInst -llatex change.log |
| MMIXAL | MMIXAL file | mmixal | notepad++ -multiInst -lmmixal change.log |
| Nimrod | Nimrod file | nimrod | notepad++ -multiInst -lnimrod change.log |
| Nncrontab | extended crontab file | nncrontab | notepad++ -multiInst -lnncrontab change.log |
| OScript | OScript source file | oscript | notepad++ -multiInst -loscript change.log |
| REBOL | REBOL file | rebol | notepad++ -multiInst -lrebol change.log |
| registry | registry file | registry | notepad++ -multiInst -lregistry change.log |
| Rust | Rust file | rust | notepad++ -multiInst -lrust change.log |
| Spice | spice file | spice | notepad++ -multiInst -lspice change.log |
| txt2tags | txt2tags file | txt2tags | notepad++ -multiInst -ltxt2tags change.log |
| Visual Prolog | Visual Prolog file | visualprolog | notepad++ -multiInst -lvisualprolog change.log |
| External | External | ext | notepad++ -multiInst -lext change.log |
Pasek społecznościowy