Comments (3)
Yes, somehow Shell Script syntax was set to General for me.
Instead of choosing Restore Defaults and losing any other changes I am not sure about, I changed kind to Code.
![Screen shot 2024-05-01 at 17 26 23](https://private-user-images.githubusercontent.com/49612/327174967-ef3921ee-53aa-498d-8876-d8b549f2741b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY3ODY4NTEsIm5iZiI6MTcxNjc4NjU1MSwicGF0aCI6Ii80OTYxMi8zMjcxNzQ5NjctZWYzOTIxZWUtNTNhYS00OThkLTg4NzYtZDhiNTQ5ZjI3NDFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTI3VDA1MDkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRjNzgyMGVkNmY3YTcyYjc5MDEyOTVjOTFiNGM0ZDc3ZWViZTljODliN2I1Mzk1MmZkOGEwOGRhMDc1OTdkMGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dNxfoQfcCZt01XRlASlo5CRB2-NxklXjiDzhBucKFzQ)
![Screen shot 2024-05-01 at 17 27 21](https://private-user-images.githubusercontent.com/49612/327175409-b941f8c7-ac04-4eb6-a104-71ace8a5856b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY3ODY4NTEsIm5iZiI6MTcxNjc4NjU1MSwicGF0aCI6Ii80OTYxMi8zMjcxNzU0MDktYjk0MWY4YzctYWMwNC00ZWI2LWExMDQtNzFhY2U4YTU4NTZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTI3VDA1MDkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2ODFmNGE1NjMyZTU4N2NiZGYwZDJlYTgxOTlkZjkxNjkxMGRkMjE5M2I0ZTY4NzI0MDYxYTNiOTc0MTRkZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HOLeOkXwMGapjURoZfJUgTs3jImhVQJ-8RLGnK88mv4)
from coteditor.
It seems my shell script is not recognised as a shell script.
Why does it ignore selected syntax in toolbar?
Here are its properties:
- filename: hash.sh
- shebang: no
- permissions: 755 (-rwxr-xr-x)
![image](https://private-user-images.githubusercontent.com/49612/326556721-93e2f444-82ca-46f9-b6bb-83ac7f0b0b78.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY3ODY4NTEsIm5iZiI6MTcxNjc4NjU1MSwicGF0aCI6Ii80OTYxMi8zMjY1NTY3MjEtOTNlMmY0NDQtODJjYS00NmY5LWI2YmItODNhYzdmMGIwYjc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTI3VDA1MDkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJmNDYyZjc3MzRjMzI1YmQzNjk2ZWUzNTdjZDVmNWE1MjY5YjE0NGQ3OGMwN2U3OGFiY2UzMTgzNjA4OTk1M2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.DdMaWXKoX8xwCdC7NRAjppGPD12ujaIgnOTzHjyJ_jQ)
from coteditor.
With the default settings, a file with .sh file extension should be mapped to the Shell Script.
When the pop-up menu in the toolbar says it is Shell Script, the document is recognized as a Shell Script document.
Then, (also with the default settings,) the mode for the editor is mapped according to the syntax kind defined in the syntax itself, which can be edited from the Format settings pane > Available syntaxes list.
If you have customized the Shell Script, the behavior can be changed. Check it once more.
![Screenshot 2024-05-01 at 16 57 32](https://private-user-images.githubusercontent.com/1165044/327077758-a6e013ed-7d60-45cb-b367-32f05d57a457.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY3ODY4NTEsIm5iZiI6MTcxNjc4NjU1MSwicGF0aCI6Ii8xMTY1MDQ0LzMyNzA3Nzc1OC1hNmUwMTNlZC03ZDYwLTQ1Y2ItYjM2Ny0zMmYwNWQ1N2E0NTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjdUMDUwOTExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjlhYmUyNTljYjNlNGZmODcxMDk2ODQ0ZDg2YTdhNmU1MTg2YThmOTgwM2I3YjRjYjI0YWJmNTQwYmQxMzM2MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.WdtV6ierQwpfm9nJ_KXkD6FsEpKXTYC4e9SCdXVze94)
from coteditor.
Related Issues (20)
- default automatic-substitution settings for the kind "general" conflict with some markup languages HOT 3
- Import this format yaml config not working. HOT 1
- Open files unexpected slowly HOT 1
- Fonts in Version 4.8.1 (644) HOT 4
- Show open editors in the sidebar HOT 1
- Current active "Mode" should be shown in user interface HOT 3
- How to disable smart quotes? HOT 10
- タブ切り替えショートカットの実装要望 HOT 2
- Incorrect syntax highlighting on Markdown HOT 1
- Markdown Highlighting: No distriction between _italic_ and **bold** HOT 3
- Incorrect “Comments” Label in Preferences > Appearance HOT 1
- Typo in Settings HOT 1
- Is it possible to fold JSON files based on {} or [] HOT 1
- The Open dialog always shows up on launch despite the setting on CotEditor 4.8.3 HOT 11
- App open but editor/window not visible HOT 1
- collapse/expand indentations HOT 1
- Directly open a blank document when launching the app HOT 4
- CotEditor crashes when I open CotEditor Settings (from menu or by keyboard shortcut) HOT 6
- Would it be possible to add a "New Tab to the right" option just like in chrome and notepad ++? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coteditor.