Comments (4)
Thanks!
This is a pretty cool idea. You can sort of get some of this working right now as I am already adding the tag name as a class name to the element that contains the tag, so it'll only colorize @urgent
instead of the whole line. The tough part will be adding the classes to the entire line that contains the tags instead of targeting only the specific tag part.
Try this in your atom stylesheet (found under settings/themes via link at top)
atom-text-editor::shadow, atom-text-editor {
.source.todo {
.attribute.urgent &{
color: red;
}
}
}
I'll have to see if there's a good way to better control where the classes go in the grammar output.
from atom-tasks.
I don't know if this is going to be possible with the current codebase because of the way scopes are handled in the final html output of the editor! I am slowly working on an alternative version that may or may not be successful where I'd be rendering my own view and would have complete control over the html output. In this case, I'd have control over the classes on each line and that would give you the ability to style just about anything. It's a bit far-off though!
from atom-tasks.
Is it possible to add additional tags to the list of those that are colorized (i.e. @timestamp, @done, @project)? I've searched around and can't find out how to do that. Thanks!
from atom-tasks.
@willfanguy: are you hoping to change the color of those tags specifically? They should already be highlighted with a specific default color that you can override in your own stylesheet!
from atom-tasks.
Related Issues (20)
- Settings "filename pattern"
- Fix where checkbox is placed
- Add option to archive project itself
- Bullet-style Line Wrapping/Indenting
- Is this package still in development? ES6? Custom Text Editor view? HOT 1
- HTMLDocument.registerElement is deprecated.
- Toggle Timestamp Feature HOT 4
- Multiple prefixes for different tag types HOT 1
- Status bar showing all tasks as incomplete
- Update: Tasks package not activating on Atom 1.24.x and later HOT 18
- Please make cmd+enter convert current line to task
- Add syntax highlighting for basic tags HOT 1
- Tasks 2.9.1 HOT 1
- "Cannot find module" error on Atom 1.25.0-beta.0. HOT 3
- Failed to activate the tasks package HOT 15
- Cannot find module 'underscore' HOT 3
- Uncaught TypeError: ref3.tokenizedBuffer.onDidTokenize is not a function HOT 1
- I can't open the tasks on my atom HOT 1
- "About:" keyword "does something" HOT 6
- property 'TouchBarButton' of undefined
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 atom-tasks.