Comments (12)
Thanks for the suggestion.
It is noteworthy that this is an issue that divides reasonable people, especially the larger C++ community, in many ways. Some people wonder if we should similarly systematically highlight verbs and nouns in every English sentence we write :-)
For now, we are doing without syntax highlighting, but we will definitely keep syntax highlighting in mind (e.g. comments formatted differently).
The issue about fenced code block syntax is more substantive, I think. It would require lot of work to fix, but I suspect having an open issue won't hurt. Thanks!
from cppcoreguidelines.
Just for the record: It apparently (I havent't tested it) is possible to turn off syntax highlighting in Github:
- Install the Stylish browser-addon (Firefox, Chrome).
- Use this stylesheet.
from cppcoreguidelines.
FYI: there is already a massive PR for this: #96
from cppcoreguidelines.
@torbjoernk ty, I haven't found this issue before making the PR :D
The PR is massive because I removed all first tabulations that become useless after moving to syntax highlighting.
@gdr-at-ms,
The PR should be review quickly or there will be easily some conflict to fix.
from cppcoreguidelines.
@Liryna Yes; we have all been busy this week; will get to that.
from cppcoreguidelines.
We prefer the simple, non-syntax highlighted code blocks for the time being. Thank you, @Liryna, for making the PR but we're not merging it at the time. Sorry!
from cppcoreguidelines.
Since @gdr-at-ms said "The issue about fenced code block syntax is more substantive, I think. It would require lot of work to fix, ..."
I hope you realize you can take the PR by @Liryna, then run find/replace
```c++\n -> ```\n
and you're done.
from cppcoreguidelines.
what's the reason for not using syntax highlighting in the documentation?
from cppcoreguidelines.
@skyrpex not all flavors of markdown support such a thing. In a word: portability.
from cppcoreguidelines.
Regarding mere fencing: Note there is a tool that reformats markdown: https://github.com/wooorm/mdast. Getting the file to be idempotent would be very useful.
It's not quite the case yet, but in case you get interested, I get close with this .mdastrc
:
{
"settings": {
"bullet": "*",
"listItemIndent": "1",
"strong": "*",
"emphasis": "*"
}
}
By adding "fences": true
this will create fences (mostly correct, a handful of cases must be fixed manually).
Regarding syntax highlighting, note I could get this on github pages via Jekyll configuration: #146 without changing the source.
from cppcoreguidelines.
Thanks for the suggestion, @tkruse
from cppcoreguidelines.
to be portable dont need be ugly
from cppcoreguidelines.
Related Issues (20)
- ES.30: Don’t use macros for program text manipulation HOT 3
- [Proposal] Allow pointer parameters to coroutines (CP.coro section)
- SL.con.1: Prefer using STL array or vector instead of a C array HOT 3
- Chem
- File extensions for modules? HOT 2
- ES.30: Don’t use macros for program text manipulation - example warnings HOT 3
- tyu
- Create binary tree by array HOT 1
- ES.25 -- Is it truly beneficial to always employ const for objects? HOT 2
- Ranges require exception to F.19 HOT 7
- Wrong links in P.8 HOT 1
- Halo HOT 1
- Remove enforcement rules of rule F.17 HOT 7
- ES.79 is a terrible advice and should be dropped HOT 14
- C.21 Exception for copy-and-swap idiom HOT 4
- Broken links HOT 3
- F.20 should exclude swap HOT 3
- SF.2 allow inline variables and static inline class member variables HOT 1
- F.16 (pass by reference to const / by value): Request for clarification HOT 6
- Poor (and nearly-incorrect) example for rule F.27 (shared_ptr) HOT 4
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 cppcoreguidelines.