Comments (6)
@JamieMair Can you post the tex content of your example? What packages are defining the environments juliaconsole
and juliaverbatim
?
from vscode-latex-basics.
I am using a copy of this template - https://github.com/sisl/tufte_algorithms_book
In the introduction.TeX file in the chapters, you can find examples of the Julia related environments working (there a few different ones).
I believe they use a version of the pythontex package with a custom lexer to do the syntax highlighting in the PDF. As far as I can tell, the Julia latex environments are defined in pythontex.sty
Maybe it would be useful to have an optional setting in which you can specify the syntax highlighting for different environments. For example:
"vscode-latex-basics.syntax.environments": {
"juliaverbatim": ".jl"
"juliaconsole": ". jl"
... Etc
}
from vscode-latex-basics.
Perhaps this line
needs to be modified to be likeWhich has support for pythontex environments.
from vscode-latex-basics.
#15 - The proposed changed seemed to work fine.
from vscode-latex-basics.
Close by #15
from vscode-latex-basics.
Maybe it would be useful to have an optional setting in which you can specify the syntax highlighting for different environments. For example:
"vscode-latex-basics.syntax.environments": { "juliaverbatim": ".jl" "juliaconsole": ". jl" ... Etc }
Unfortunately, it is not possible to use configuration variables in TextMate grammars. Only semantic highlighting can be configured by the user but for the time being we consider it out of the scope of the extension.
from vscode-latex-basics.
Related Issues (20)
- Incorrect scope for utf8 characters in labels HOT 1
- Only the first character is highlighted in macro names with non latin character
- decimal digits in \cite arguments are not highlighted HOT 3
- LaTeX syntax highlighting broken with minted and escapeinside HOT 8
- Error highlighting `\%` in `.bib` files HOT 1
- Quote on multiple lines (with inner apostrophe in math mode) causes issues HOT 2
- Language highlight between ` and ' HOT 1
- Non-ASCII Characters in `\label{}` are not Highlighted
- BibTeX syntax: "%" is not a comment character HOT 5
- Incorrect match for punctuation.definition.string.begin.latex
- Nested \( \) Highlight HOT 3
- Syntax highlighting broken after German quotation marks HOT 2
- Incorrect syntax highlighting for command \hyperref[]{}
- Syntax bug when quotations mixed with comments or math HOT 2
- Non-existent `\merge` is highlighted the same as `\alpha` in math mode HOT 4
- Useless `"patterns"` array HOT 1
- Treat highlighting for terminal and minted equally
- Missing math scope in hyperref HOT 4
- [Feature request] highlight `iffalse` block as a comment HOT 2
- Syntax highlghting for robust-extrenalize
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 vscode-latex-basics.