Comments (3)
Rust is supported, code sample has been added. Thank you for the contribution!
from intellij-colors-sublime-monokai.
Oh yes, I would like to add rust... can you provide some sample code?
from intellij-colors-sublime-monokai.
Sure! This appears to be included in the Rust plugin for IntelliJ:
You can find it under Preferences > Editor > Color Scheme > Rust
after you install the plugin.
#[macro_use]
extern crate log;
use std::collections::HashMap;
use std::rc::Rc;
mod stuff;
pub enum Flag {
Good,
Bad,
Ugly
}
pub trait Write {
fn write(&mut self, buf: &[u8]) -> Result<usize>;
}
struct Object<T> {
flag: Flag,
fields: HashMap<T, u64>
}
type RcObject<T> = Rc<Object<T>>;
impl<T> Write for Object<T> {
fn write(&mut self, buf: &[u8]) -> Result<usize> {
let s = stuff::write_map(&self.fields, buf)?;
info!("{} byte(s) written", s);
Ok(s)
}
}
/* Block comment */
fn main() {
// A simple integer calculator:
// `+` or `-` means add or subtract by 1
// `*` or `/` means multiply or divide by 2
stuff::AppVersion::print();
let input = Option::None;
let program = input.unwrap_or_else(|| "+ + * - /");
let mut accumulator = 0;
for token in program.chars() {
match token {
'+' => accumulator += 1,
'-' => accumulator -= 1,
'*' => accumulator *= 2,
'/' => accumulator /= 2,
_ => { /* ignore everything else */ }
}
}
info!("The program \"{}\" calculates the value {}",
program, accumulator);
}
/// Some documentation `with code`
/// # Heading
/// [Rust](https://www.rust-lang.org/)
#[cfg(target_os="linux")]
unsafe fn a_function<T: 'lifetime>() {
'label: loop {
println!("Hello\x20W\u{f3}rld!\u{abcdef}");
}
}
from intellij-colors-sublime-monokai.
Related Issues (20)
- whitespaces are too bright HOT 2
- Theme not found in Appearance Pref after restart (Intellij 14 CE) HOT 4
- No occurrence highlighting HOT 1
- Low contrast for many non-Java files HOT 1
- C/C++ and Kotlin Support HOT 4
- doesnt work with Intellij 14 HOT 5
- The same variable does not display with the same color HOT 2
- Generating Jars For Other Sublime Themes HOT 1
- Not Working with latest version of Intellij 2016.1 HOT 3
- Unsupported Color Scheme Version - SOLVED HOT 8
- Unable to load settings HOT 2
- new Constructor font color is Black on black HOT 5
- Parameter hints are hard to read HOT 2
- Can not see the text in modify table view
- why does not support kotlin so far HOT 1
- C# Support
- font-size HOT 1
- icls file is missing from repository HOT 1
- The sublime Monokai theme used in sublime 4 is different and uses different color schemes
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 intellij-colors-sublime-monokai.