For some reason the TODO Tags i added to my .js files are not showing up inside the Tasks View. I've already made sure, that the "TODO" tag itsself is set under Task Tags for javascript but thei're still not showing up in the list. I've made a filter for the view to show all Tasks in the working set i'm using but nothing is there.
nitind's answer is perfect. I would like to make it comprehensive.
Right click the project & select properties. In 'Builders' , select 'JavaScript Validator'.
Similarly, to parse tasks in HTML, CSS & XML files, goto Preferences->General->Editors->Structured Text Editors->Task Tags and click 'Enable searching for Task Tags'
NOTE: The answer is validated only in eclipse indigo (3.7.1)
You must have your files in JavaScript Source Folders within a project and be running the JavaScript Validator Builder (or having it installed and automatic builds enabled).
Related
I am working on an asp.net MVC project.
I noticed that there are 2 files in my script folder (can't remember how they got added, but I don't seem to be using them):
_Layout.es5.js
_Layout.es5.min.js
They never show up in Visual Studio, even when I choose 'Show All Files' options.
What are these files? Why don't they show up in Visual Studio? And should I delete them?
You can check if a script files are used anywhere in the project (js, css or any script/content file). You can follow the following steps:
In visual studio press Ctrl + Shift + I then search for _Layout.es5.js or _Layout.es5.min.js. Use the "Find all" option for faster result
Also do a search with partial name like _Layout.es
Your file might be referenced dynamically which will not show up in the previous search. If no reference was found in the previous search then from the browse check if the file is downloaded on any page by browsing the pages and inspecting which files are downloaded.
For example on Google Chrome open the Developer tool, Then check the Disabled cache and the js check boxes so that you can check the JS files only.
I am trying to find the configuration file of CKEditor (v8.5.3) so I can remove automatical stripping of classes from div element using config.extraAllowedContent = 'div(*)';
I have found some threads where are people referencing the config.js in the root file of CKEditor but I cant find it in there. Any idea where I can found this configuration file?
Thank you for response.
I'm not a Drupal guy but from what I have checked, in D8 you can set the configuration using hook_editor_js_settings_alter. Please see:
https://api.drupal.org/api/drupal/core%21modules%21editor%21editor.api.php/function/hook_editor_js_settings_alter/8.5.x
https://drupal.stackexchange.com/questions/186102/drupal-8-ckeditor-behaves-ltr-in-an-rtl-site/186303#186303
When it comes to filtering HTML however you should, in your Drupal Admin Panel, go to Configuration -> Content Authoring (Text formats and editors). There you can either configure "Allowed HTML tags" or simply uncheck "Limit allowed HTML tags and correct faulty HTML" checkbox what will allow everything.
If you wish to configure your HTML here is IMO a nice link showing the filter syntax: https://www.drupal.org/node/2571349
I've ran a file search from the command line, and can confirm that nowhere does the file config.js exist (using v8.6.x).
I found another case of an admin losing classes on DIVs in CKEditor (though in version 8.2.x), and the only way she found to remedy that, was to create a new text format at /admin/config/content/formats. Then, including in allowed HTML tags:
<div class>
Her full solution can be found here. It includes some pointers as to which options to select when creating the new text format.
I have a large number of (300+) help pages. The web version should display the Google Translate dropdown menu, but when these same files are used offline (in Windows help .chm files) the dropdown should be hidden. Obviously I would not want to maintain two separate help files.
So I have my Google Translate code inside a called and created a style sheet that tells the page whether or not to show the translate dropdown (web) or hide it (local file). This works pretty well, except that I get the Google Translate icon on my local .chm files.
Like I said, the dropdown is not displaying on these local pages, just as expected, but how can I get rid of the icon? Interesting, too, that this image (untitled.png) shows up with or without the style sheet enabled.
BTW, I am talking about the bigger, blue image, not the Google"G" right in front of the dropdown.
without dropdown
with dropdown
Thanks for your time!
You can ensure that the CSS files are compiled into the help file by adding their names to the [FILES] list in the project (.hhp) file in two ways.
You may add the *.css filename(s) by editing the *.hhp file with a plain text editor or to do this with HH Workshop:
Open the .hhp file in HTML Help Workshop.
Click the Add/Remove Topic Files button on the Project tab.
In the Topic Files dialog box, click Add.
In the File Name field at the bottom of the Open dialog box, type *.css (or e.g. *.jpg)
Browse to the directory that contains the files (or e.g css), and then select them.
Click Open, and then click OK to close the Topic Files dialog box.
Additional information:
The help compiler automatically pulls into the help file all graphics that are referenced in elements via the "src=" attribute. For graphics that are referenced by other means, such as in a script or style sheet, you must use the above workaround to ensure that they are compiled into the .chm file
I have a code generated by "highslide" software and what it does is to create an image gallery.
This code consists of .css html and javascript.
If I place the htmal code in the Joomla's "index.php" file and then the rest of the file in the root directory then the image gallery is working and is placed in every page in Joomla.
I do not want this. Is there a way of assigning that image gallery to only pages I choose?
Or is there a way to find out what is the index.php main file for that specific page I need to have the gallery and paste the code in there?
I have tried to insert the code in a custom module via the Joomla's editor but when I click on save then it compiles the code and remove certain parts of it and cannot work.
It removes the link to javascript and to css file.
Is there a way without any other third party extension to have that code into the custom module without then Joomla eliminate the half of the code?
Thank you,
Best Regards,
Andreas Achilleos
I would not add things like this to your index.php file. This is Joomla, not a static html website ;)
You have 3 options:
Option 1 would be to develop your own module and install it on your Joomla site. This option would take the longest amount of time and would require you to get your handy in a bit of coding.
Option 2 would be to firstly download, install and enable a plugin called Sourcerer. Once done, in the Joomla backend, create a new "Custom Module" and manually add your html code. After, below the big textbox, you will see a button below saying "Insert code". O modal will popup allowing you to add your custom code. Simply add your CSS and JS using the <style> and <script> tags.
Option 3 would be to use a pre-built Image Gallery extensions from the Joomla Extensions Directory. There are loads to choose from.
Hope this helps
After logging into my admin panel in Magento, the dropdowns in the admin panel are not showing up. JavaScript error console revealed some errors. After a bit of googling I have tried:
changing permisions of js folder to 755
all .js files and index.php in js folder to 644
Finally I also tried replacing the is folder with the original js folder of the Magento package. However nothing seems to work.
The reason why the dropdowns won't show is that Magento uses JavaScript to assign classes to the hovered menu elements and uses those classes in the CSS to show dropdowns. Errors in the javascript prevent from loading every other javascript that appear after the line with an error.
Don't replace js folder with default one - every new js that's there is there for a reason (it sounds like your website was customized, so removing js files responsible for custom features won't help you). Instead, you have to work on fixing every javascript error.
Please provide more data on those errors or a link to your website.