Syntax Highlighting for Text Editing

55 views
Skip to first unread message

Rory Gillis

unread,
Aug 24, 2021, 9:08:05 AM8/24/21
to BBEdit Talk
Hi everyone,

Would it be possible to emulate IA writer's syntax control feature in BBEdit?

In other words, would it be possible to highlight different parts of a sentence (e.g. verbs vs. nouns) in different colours when I am editing text in BBEdit? Thanks.

Christopher Waterman

unread,
Aug 24, 2021, 9:06:28 PM8/24/21
to bbe...@googlegroups.com
Hey Rory, 

On Aug 24, 2021, at 5:49 AM, Rory Gillis <rory.g...@gmail.com> wrote:

Would it be possible to emulate IA writer's syntax control feature in BBEdit?

In other words, would it be possible to highlight different parts of a sentence (e.g. verbs vs. nouns) in different colours when I am editing text in BBEdit? Thanks.

I don’t think so? But you might be interest in these options.


I found these links in this articles(blog post).

This is an interesting writing tool/project.

I did a down and dirty implementation into BBEdit by putting this script into '/Users/chris/Library/Application Support/BBEdit/Scripts/' .

Check Prose.rb
--------------------------------------------------------------------------
#!/usr/bin/env ruby

doc = ENV[ 'BB_DOC_PATH' ]

`osascript -e 'tell application "BBEdit" to tell text document 1 to save'`

`which proselint`

if $?.success?
exec "proselint '#{doc}' | bbresults"
else
abort "You might need to install proselint.\nhttp://https://github.com/amperser/proselint/\nhttp://proselint.com\n$ brew install proselint"
end
--------------------------------------------------------------------------

I know it isn’t what you are looking for but maybe you will find some of this useful.

— Chris(topher)?
Reply all
Reply to author
Forward
0 new messages