Questions tagged [bbedit]

BBEdit is a commercial text editor for Mac OS X, targeted towards web developers

19 questions
9
votes
1 answer

Correct indentation for selected code with BBEdit

Can I correct the indention of selected code (not my whole page) with BBEdit? So if I had this:
It colud become this:
Evanss
  • 1,358
8
votes
2 answers

View character encoding of file in BBEdit

I know you can open the current opened file using another character encoding, but how do you view what character encoding, the file is currently opened with?
Tyilo
  • 2,845
5
votes
2 answers

Is it possible to mark code so as to add custom entries to BBEdit's "Functions" menu?

I remember back in my CodeWarrior days, it was possible to add entries to the code navigational menu using #pragma mark directives, which made it easy to organize your code file into sections visible in the menu. Is there any such way to do this in…
devios1
  • 725
2
votes
1 answer

How to remove all the extra horizontal scroll space in BBEdit

In BBEdit, it shows so much extra space on the right side of my document, forcing the bottom scroll bar to appear. This is really annoying for me, since whenever I scroll up or down, I inevitably also scroll a little horizontally, obscuring the code…
AmadeusDrZaius
  • 227
  • 1
  • 3
  • 12
2
votes
3 answers

VIM edit directory like BBEdit for Mac

I've recently started to really appreciate the power of VIM. Once you learn how to use it, coding and editing go a lot quicker. My main holdup is that I can't open a directory like a project in VIM, which BBEdit (Mac) does so wonderfully. Are there…
wmarbut
  • 123
2
votes
1 answer

Why do some text editors offer to end your file with a line break? Why is that important?

Why do some text editors such as BBEdit and Textmate offer to end your file with a newline (line break)? Why is that important? Are there any caveats to not ending a file with a line break?
racl101
  • 206
2
votes
1 answer

How to disable sandbox access for BBEdit after initially setting up sandbox access?

I installed BBEdit (version 14.6.1 (14D24, 64-bit Intel, sandboxed)) on MacOS 13 (Ventura). In the Application Settings, I allowed "Sandbox Access" - however, I then changed my mind, wanting to be prompted for the folders instead for now. (I know I…
leanne
  • 631
2
votes
1 answer

Is there a way to save/reuse regex search/replace patterns in atom or other Linux text editor?

I use BBedit on Mac OS, which has a great feature that allows you to store and reuse search patterns (including grep/regex patterns) in a popup menu inside the search/replace menu. I'm using Ubuntu now because the Mac has gotten so slow after the…
Lido
  • 31
1
vote
1 answer

Searching across multiple documents for common words

I have the lyrics to a song. (.txt) I also have lyrics to 50 other songs. I'm looking for a way to analyse/search those 50 song lyrics with the lyrics to the first song, and find which one of the 50 is most similar to the first (based on shared…
ioloiol
  • 11
1
vote
0 answers

Show CSS colors with BBEdit?

Can BBEdit show the actual color inline in a CSS or SASS file? Some text editors when you type the following will give the #3399FF a highlight of that color (in this case blue). This can be helpful when browsing CSS or SASS files. .something { …
Evanss
  • 1,358
1
vote
1 answer

How to make curly braces collapsable in BBEdit (TextWrangler) for ruby on rails code?

So I really like how BBEdit allows you to fold blocks of code. But for Ruby code it doesn't recognize curly braces as a place to insert folds automatically. Is it possible to tweak the preferences in a way that lets me to collapse/expand code…
lanan
  • 111
1
vote
1 answer

How can I pretty print erb in BBedit indenting rails tags and not just markup?

I want to re-indent my code but the rails tags <% foo %> get aligned to the left with no indentation. What I'm using is: markup > utilities > format > pretty print Does anyone know if there is a way to reconfigure this behavior? UPDATE: I just…
ARD
  • 39
1
vote
0 answers

BBEdit 15 not finding Grep Patterns.xml

Prior BBEdit versions used to have all grep saved patterns written to a Grep Patterns.xml file located in Application Support > BBEdit > Setup > Grep Patterns.xml. However, after the recent upgrade to BBEdit 15 when I click the dropdown for grep…
1
vote
1 answer

BBEDIT multi-file search : multiple find&eplace queries simultaneously?

In another thread grep search got the proper use right for the OR argument in a grep search in BBEDIT and so was wondering whether this can be expanded as following : is it possible to have a given set of different entries with different answers in…
1
vote
2 answers

BBEDIT multi-fil search : how to add "OR" argument in the find window?

Hi trying out latest BBedit on Ventura Apple silicon. Have been wrapping my head around the (im)possibility to search for different strings at once in the find window, in order to have each occurrence replaced by one single term. I would like…
1
2