Get .prf file from Jetbrains Webstorm and apply it to listings configuration












0















From the listings doc it is mentioned that I basically can retrieve a Configuration file for the styling of a language from the IDE and apply it as lstset setting:




...settings in an IDE and can be defined as a listings style. From
version 1.5b of the listings package on these styles are provided as
files with the name listings-hlanguagei.prf, hlanguagei is the name of
the supported programming language in lowercase letters. So if an user
of the listings package wants to use these preferences, she/he can say
for example when using Python input{listings-python.prf}
at the end of her/his listings.cfg configuration file as long as the
file listings-python.prf resides in the TEX search path. Of course
that file can be changed according to the user’s preferences. At the
moment there are five such preferences files:
1. listings-acm.prf
2. listings-bash.prf
3. listings-fortran.prf
4. listings-lua.prf
5. listings-python.prf All contributors are invited to supply more personal preferences




Now I am using Jetbrains IDE called Webstorm, but there is no way near I can find a so called listings-language.prf file. The reason I am doing this is, there is no default styling config for Javascript and I implemented the styling of keywords my own way. But with importing this file I can delete my own listings config. Can anyone help me out on this?










share|improve this question


















  • 1





    The listings documentation is not very clear on this, but there is no automatic way to convert IDE settings into a listings configuration file as far as I know. I think you should read the documentation as 'if you like your IDE settings then you can manually write a configuration file that resembles your own settings'.

    – Marijn
    Jan 24 at 15:54











  • Okay thanks. But that would be a awesome feature to integrate styling settings from the ide into lstset properties. Espacially because lstlistings does not offer many (integrated) language options.

    – creep-story
    Jan 25 at 11:51
















0















From the listings doc it is mentioned that I basically can retrieve a Configuration file for the styling of a language from the IDE and apply it as lstset setting:




...settings in an IDE and can be defined as a listings style. From
version 1.5b of the listings package on these styles are provided as
files with the name listings-hlanguagei.prf, hlanguagei is the name of
the supported programming language in lowercase letters. So if an user
of the listings package wants to use these preferences, she/he can say
for example when using Python input{listings-python.prf}
at the end of her/his listings.cfg configuration file as long as the
file listings-python.prf resides in the TEX search path. Of course
that file can be changed according to the user’s preferences. At the
moment there are five such preferences files:
1. listings-acm.prf
2. listings-bash.prf
3. listings-fortran.prf
4. listings-lua.prf
5. listings-python.prf All contributors are invited to supply more personal preferences




Now I am using Jetbrains IDE called Webstorm, but there is no way near I can find a so called listings-language.prf file. The reason I am doing this is, there is no default styling config for Javascript and I implemented the styling of keywords my own way. But with importing this file I can delete my own listings config. Can anyone help me out on this?










share|improve this question


















  • 1





    The listings documentation is not very clear on this, but there is no automatic way to convert IDE settings into a listings configuration file as far as I know. I think you should read the documentation as 'if you like your IDE settings then you can manually write a configuration file that resembles your own settings'.

    – Marijn
    Jan 24 at 15:54











  • Okay thanks. But that would be a awesome feature to integrate styling settings from the ide into lstset properties. Espacially because lstlistings does not offer many (integrated) language options.

    – creep-story
    Jan 25 at 11:51














0












0








0








From the listings doc it is mentioned that I basically can retrieve a Configuration file for the styling of a language from the IDE and apply it as lstset setting:




...settings in an IDE and can be defined as a listings style. From
version 1.5b of the listings package on these styles are provided as
files with the name listings-hlanguagei.prf, hlanguagei is the name of
the supported programming language in lowercase letters. So if an user
of the listings package wants to use these preferences, she/he can say
for example when using Python input{listings-python.prf}
at the end of her/his listings.cfg configuration file as long as the
file listings-python.prf resides in the TEX search path. Of course
that file can be changed according to the user’s preferences. At the
moment there are five such preferences files:
1. listings-acm.prf
2. listings-bash.prf
3. listings-fortran.prf
4. listings-lua.prf
5. listings-python.prf All contributors are invited to supply more personal preferences




Now I am using Jetbrains IDE called Webstorm, but there is no way near I can find a so called listings-language.prf file. The reason I am doing this is, there is no default styling config for Javascript and I implemented the styling of keywords my own way. But with importing this file I can delete my own listings config. Can anyone help me out on this?










share|improve this question














From the listings doc it is mentioned that I basically can retrieve a Configuration file for the styling of a language from the IDE and apply it as lstset setting:




...settings in an IDE and can be defined as a listings style. From
version 1.5b of the listings package on these styles are provided as
files with the name listings-hlanguagei.prf, hlanguagei is the name of
the supported programming language in lowercase letters. So if an user
of the listings package wants to use these preferences, she/he can say
for example when using Python input{listings-python.prf}
at the end of her/his listings.cfg configuration file as long as the
file listings-python.prf resides in the TEX search path. Of course
that file can be changed according to the user’s preferences. At the
moment there are five such preferences files:
1. listings-acm.prf
2. listings-bash.prf
3. listings-fortran.prf
4. listings-lua.prf
5. listings-python.prf All contributors are invited to supply more personal preferences




Now I am using Jetbrains IDE called Webstorm, but there is no way near I can find a so called listings-language.prf file. The reason I am doing this is, there is no default styling config for Javascript and I implemented the styling of keywords my own way. But with importing this file I can delete my own listings config. Can anyone help me out on this?







lstlisting ide lstdefinestyle






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 22 at 19:32









creep-storycreep-story

1011




1011








  • 1





    The listings documentation is not very clear on this, but there is no automatic way to convert IDE settings into a listings configuration file as far as I know. I think you should read the documentation as 'if you like your IDE settings then you can manually write a configuration file that resembles your own settings'.

    – Marijn
    Jan 24 at 15:54











  • Okay thanks. But that would be a awesome feature to integrate styling settings from the ide into lstset properties. Espacially because lstlistings does not offer many (integrated) language options.

    – creep-story
    Jan 25 at 11:51














  • 1





    The listings documentation is not very clear on this, but there is no automatic way to convert IDE settings into a listings configuration file as far as I know. I think you should read the documentation as 'if you like your IDE settings then you can manually write a configuration file that resembles your own settings'.

    – Marijn
    Jan 24 at 15:54











  • Okay thanks. But that would be a awesome feature to integrate styling settings from the ide into lstset properties. Espacially because lstlistings does not offer many (integrated) language options.

    – creep-story
    Jan 25 at 11:51








1




1





The listings documentation is not very clear on this, but there is no automatic way to convert IDE settings into a listings configuration file as far as I know. I think you should read the documentation as 'if you like your IDE settings then you can manually write a configuration file that resembles your own settings'.

– Marijn
Jan 24 at 15:54





The listings documentation is not very clear on this, but there is no automatic way to convert IDE settings into a listings configuration file as far as I know. I think you should read the documentation as 'if you like your IDE settings then you can manually write a configuration file that resembles your own settings'.

– Marijn
Jan 24 at 15:54













Okay thanks. But that would be a awesome feature to integrate styling settings from the ide into lstset properties. Espacially because lstlistings does not offer many (integrated) language options.

– creep-story
Jan 25 at 11:51





Okay thanks. But that would be a awesome feature to integrate styling settings from the ide into lstset properties. Espacially because lstlistings does not offer many (integrated) language options.

– creep-story
Jan 25 at 11:51










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471361%2fget-prf-file-from-jetbrains-webstorm-and-apply-it-to-listings-configuration%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471361%2fget-prf-file-from-jetbrains-webstorm-and-apply-it-to-listings-configuration%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?