We have executable Python scripts in our repository that do not include a *.py file extension in their name. Therefore, the syntax highlighter of Crucible/Fisheye is not able to detect the language. But we have a shebang included in the Python script. So, there is some information about the programming language in the file which could be used by the syntax highlighter for language detection.
I found something for Stash: https://confluence.atlassian.com/display/STASHKB/Configuring+syntax+highlighting+for+file+extensions
Is there something similar for Fisheye/Crucible syntax highlighting?
To be clear: I am NOT interested in defining syntax highlighting. I want to detect the language of a file (using the shebang in the header of the script) to determine which existing syntax highlighting to use. The Python script does not have a *.py file extension that could be used for detecting the language but a shebang in first line of the executable Python script like that:
#!/usr/bin/python # any python code follows
True, but after modification I'd suggest moving it into FISHEYE_INST so you don't have to remember to recreate it next upgrade.
we had the synatx/filename.map entry for the files with extenstion .py and it is working for files having correct extension.
"**/*.py" python.def "Python"
is there any option for files not having extenstion to be identified like MIME type ?
we had tried the below in raw-mime.types
text/x-python python py
text/plain asc ascx asmx asa asax ashx axd config txt java jsp asp aspx cs idl cpp cxx c h pl pod py sh awk sed sql jspf tag xaml frm vb browser master
csproj vbproj sitemap
but syntax highlighting not working for files without .py extenstion .
any options to enable syntax highlighting for files which do not have extension in fisheye?
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs