Comments (4)
Currently, highlighting by changing anything but color is unsupported because, all highlighting is done by setting temporary attributes on the layout manager. Temporary attributes can't affect layout; this means that trying to set the font with temporary attributes won't have any effect.
The only way to do this would be to change the attributes in the text storage, but since a text view's text storage can be modified by other parts of the application in unexpected ways, this is not really feasible. Some trickery would be needed to hide Fragaria's attributes from the rest of the application. But, even if we do that, it might interact in some unexpected way with the text view, because Fragaria sets isRichText to YES.
To sum it up, it's probably doable, but not in an easy way.
from fragaria.
BTW, this is a duplicate of #70.
from fragaria.
Thanks for the explanation. I tried to modify if (mode from temporary attributes to directly setting attribute in the text storage) but performance is really impacted (+ the potential side effects you described)
from fragaria.
Fixed in 6b16cef (see issue #70).
from fragaria.
Related Issues (20)
- Additional syntax properties HOT 10
- Fragaria instances sharing the same text storage also share the same text color HOT 5
- Hand-editable color themes
- Color well enabling does not work if the associated "coloursX" property is on global scope HOT 3
- Allow registering in the global preferences controller
- Make it easier to add/remove MGSFragaria from a preference group
- Preferences groups should not retain the Fragarias they contain
- Podspec HOT 3
- DIFF highlighting (feature request) HOT 1
- code folding support HOT 1
- Fragaria with Storyboards HOT 1
- MGSSyntaxController get file extension based on a given name. HOT 2
- References frameworks are missing '@rpath/Fragaria.framework' HOT 1
- Custom Auto Complete Words HOT 1
- Autocomplete only when selecting a value from the suggestions list? HOT 3
- Scrolling is stuck after changing layout HOT 13
- 10.14/Mojave Dark Mode doesn't change appearance HOT 4
- Does it support JSON highlighting?
- Add configuration for brace matching. 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 fragaria.